我想知道Apache Commons Lang3 (org.apache.commons.lang3
) 与 Apache Commons Text (org.apache.commons.text
)?
我看到他们之间有很多相似之处。
例如,它们都有 StringEscapeUtils
:
但我也看到了很多不同之处。
那么我应该使用哪一个,Lang3 还是 Text?
或者这两者的常见用例是什么?
最佳答案
嗯,text
方法状态
This code has been adapted from Apache Commons Lang 3.5.
看起来他们只是计划将方法从一个库转移到另一个库。您必须让该代码的作者解释原因。
然而,值得指出的是 lang3
是 text
的编译依赖,因此如果你包含 text
,你将拥有 lang3
无论如何
https://github.com/apache/commons-text/blob/master/pom.xml#L61-L65
关于java - Apache Commons Lang3 与 Apache Commons Text 之间有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46893253/