Java 常用工具包 Apache Commons Lang 3.8 发布

栏目: 软件资讯 · 发布时间: 7年前

内容简介:Apache Commons Lang 3.8 已发布,这是 Commons 项目中用来处理 Java 基本对象方法的工具类包,可以简化很多平时经常要用到的写法,例如判断字符串是否为空等等。 Commons Lang 3.x 最低要求 Java 7,同时支持 Ja...

Apache Commons Lang 3.8 已发布,这是 Commons 项目中用来处理 Java 基本对象方法的 工具 类包,可以简化很多平时经常要用到的写法,例如判断字符串是否为空等等。

Commons Lang 3.x 最低要求 Java 7,同时支持 Java 8, 9, 10。

更新内容

新特性:

  • LANG-1352: EnumUtils.getEnumIgnoreCase and isValidEnumIgnoreCase methods added

  • LANG-1372: Add ToStringSummary annotation

  • LANG-1356: Add bypass option for classes to recursive and reflective EqualsBuilder

  • LANG-1391: Improve Javadoc for StringUtils.isAnyEmpty(null) 

  • LANG-1393: Add API SystemUtils.String getEnvironmentVariable(final String name, final String defaultValue) 

  • LANG-1394: org.apache.commons.lang3.SystemUtils should not write to System.err.

  • LANG-1238: Add RegexUtils class instead of overloading methods in StringUtils that take a regex to take precompiled Pattern

  • LANG-1390: StringUtils.join() with support for List<?> with configurable start/end indices

  • LANG-1392: Methods for getting first non empty or non blank value

  • LANG-1408: Rounding utilities for converting to BigDecimal

Bugs 修复:

  • LANG-1380: FastDateParser too strict on abbreviated short month symbols

  • LANG-1396: JsonToStringStyle does not escape string names

  • LANG-1395: JsonToStringStyle does not escape double quote in a string value

  • LANG-1384: New Java version ("11") must be handled

  • LANG-1364: ExceptionUtils#getRootCause(Throwable t) should return t if no lower level cause exists

  • LANG-1060: NumberUtils.isNumber assumes number starting with Zero

  • LANG-1375: defaultString(final String str) in StringUtils to reuse defaultString(final String str, final String defaultStr) 

  • LANG-1374: Parsing Json Array failed

  • LANG-1371: Fix TypeUtils#parameterize to work correctly with narrower-typed array

  • LANG-1370: Fix EventCountCircuitBreaker increment batch

  • LANG-1385: NumberUtils.createNumber() throws StringIndexOutOfBoundsException instead of NumberFormatException

  • LANG-1397: WordUtils.wrap throws StringIndexOutOfBoundsException when wrapLength is Integer.MAX_VALUE.

  • LANG-1401: Typo in JavaDoc for lastIndexOf

其他更改:

  • LANG-1367: ObjectUtils.identityToString(Object) and friends should allocate builders and buffers with a size

  • LANG-1405: Remove checks for java versions below the minimum supported one

  • LANG-1402: Null/index safe get methods for ArrayUtils

以往版本更新记录,可查阅 RELEASE NOTES

源码下载:


【声明】文章转载自:开源中国社区 [http://www.oschina.net]


以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

网站分析实战

网站分析实战

王彦平 吴盛峰 / 电子工业出版社 / 2013-1 / 59.00元

《网站分析实战:如何以数据驱动决策,提升网站价值》由王彦平、吴盛峰著。目前,越来越多的网站开始重视数据,并期望从中发现新的机会,不管你是做网络营销、互联网产品设计、电子商务运营、个人站点运营维护,我们都希望从数据中寻找有价值的结论,并且指导公司管理层的决策,最终创造更大的网站价值。《网站分析实战:如何以数据驱动决策,提升网站价值》以通俗易懂的方式来讲解网站分析所需掌握的知识,剖析日常工作中遇到的问......一起来看看 《网站分析实战》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具