Why was org.apache.common.lang3 StringEscapeUtils deprecated?

前端 未结 4 1234
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-01 01:53

I couldn\'t find any explanation why StringEscapeUtils was deprecated from Apache Lang3 v3.7.

https://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/l

4条回答
  •  广开言路
    2021-02-01 02:35

    From Commons-lang 3.6 release notes:

    The Apache Commons Community has recently set up the Commons Text component as a home for algorithms working on strings. For this reason most of the string focused functionality in Commons Lang has been deprecated and moved to Commons Text. This includes:

    o All classes in the org.apache.commons.lang3.text and the org.apache.commons.lang3.text.translate packages o org.apache.commons.lang3.StringEscapeUtils o org.apache.commons.lang3.RandomStringUtils o The methods org.apache.commons.lang3.StringUtils.getJaroWinklerDistance and org.apache.commons.lang3.StringUtils.getLevenshteinDistance

    For more information see the Commons Text website:

    http://commons.apache.org/text
    

提交回复
热议问题