Guava 28.1 发布,Google 的 Java 核心工具库

Guava 28.1 发布了,Guava 是 Google 的一个开源项目,包含许多 Google 核心 Java 常用库,如:集合 [collections] 、缓存 [caching] 、原生类型支持 [primitives support] 、并发库 [concurrency libraries] 、通用注解 [common annotations] 、字符串处理 [string processing] 与 I/O 等。

更新内容如下:

  • collect:新增 RangeMap.merge,类似于 Map.merge(687252d)
  • collect:修复了 ImmutableSet.Builder 中的一个 bug,当从同一个构建器构建多个集合时,该 bug 可能导致无限循环 (0007cb2)
  • io:修复了 BaseEncoding.decodingStream(Reader)返回的 InputStream 在解码无效字符串时无法抛出 DecodingException 的问题 (ddd4a49)
  • net:为 "image/heif" 和 "image/jp2" 添加了 MediaType  (508696a)
  • net:为 HttpHeaders添加了 Upgrade-Insecure-Requests 标头 (6a8b716)
  • concurrent:修复了 Futures.whenAllSucceed/whenAllComplete 中潜在的内存泄漏问题(494834b)

更新说明及下载地址

Maven

<dependency>
  <groupId>com.google.guava</groupId>
  <artifactId>guava</artifactId>
  <version>28.1-jre</version>
  <!-- or, for Android: -->
  <version>28.1-android</version>
</dependency>

猜你喜欢

转载自www.oschina.net/news/109479/guava-28-1-released