Apache Commons Pool 2.8.0 发布

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

内容简介:Apache Commons Pool 提供了一个对象池 API 和一系列对象池实现。 与 1.x 系列相比,Apache Commons Pool 2.x 包含完全重写的池实现。除了性能和可扩展性改进之外,2.x 还包括强大的实例跟踪和池监控,要求 JDK ...

Apache Commons Pool 提供了一个对象池 API 和一系列对象池实现。

与 1.x 系列相比,Apache Commons Pool 2.x 包含完全重写的池实现。除了性能和可扩展性改进之外,2.x 还包括强大的实例跟踪和池监控,要求 JDK 1.6 及以上。

Apache Commons Pool 2.8.0 更新内容:

新特性

  • POOL-378:弃用 PoolUtils.prefill(ObjectPool,int),而推荐使用 ObjectPool.addObjects(int)
  • POOL-379:弃用 PoolUtils.prefill(KeyedObjectPool,K,int),而推荐使用 KeyedObjectPool.addObjects(K,int)
  • POOL-380:建议使用 KeyedObjectPool.addObjects(Collection,int),弃用 PoolUtils.prefill(KeyedObjectPool,Collection,int)

Bug 修复

  • POOL-374:当在池映射中找不到键时,org.apache.commons.pool2.impl.GenericKeyedObjectPool.returnObject(K,T)应该抛出 IllegalStateException 而不是 NullPointerException
  • POOL-376:修复了 POOL-356 原始修复的回归问题,该问题可能会在销毁对象时导致 NPE
  • POOL-326:由于过早删除了密钥池,因此消除了 NPE/ISE 异常
  • 在对基础 BufferedOutputStream 调用 toString 之前,先在测试中关闭 BufferedOutputStream
  • [Javadoc] 在 SoftReferenceObjectPool 中添加缺少的 @throws 注释

详情见更新说明


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

查看所有标签

猜你喜欢:

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

The Art of Computer Programming, Volume 3

The Art of Computer Programming, Volume 3

Donald E. Knuth / Addison-Wesley Professional / 1998-05-04 / USD 74.99

Finally, after a wait of more than thirty-five years, the first part of Volume 4 is at last ready for publication. Check out the boxed set that brings together Volumes 1 - 4A in one elegant case, and ......一起来看看 《The Art of Computer Programming, Volume 3》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

html转js在线工具
html转js在线工具

html转js在线工具