转载

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

Guava 25.1 已发布,更新如下:

  • Switched to the type annotation version of @Nullable in the JRE/Java 8 flavor. 

  • base : Added  Strings.lenientFormat() , copied from  Preconditions.format() .

  • net : Added Token Binding HTTP headers to  HttpHeaders .

  • reflect : Added overrides for methods on JDK types returning  AnnotatedType in the JRE/Java 8 flavor.

  • testing : Added support for type annotations in  NullPointerTester in the JRE/Java 8 flavor. 

  • util.concurrent : Added  @DoNotCall to  Futures methods that do not accept an  Executor in preparation for removal. 

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

Maven

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

Javadoc

  • 25.1-jre

  • 25.1-android

JDiff

  • 25.1-jre vs. 25.0-jre (shows a lot of junk, probably due to switch to  @Nullable type annotations)

  • 25.1-android vs. 25.0-android

  • 25.1-android vs. 25.1-jre

原文  https://www.oschina.net/news/96384/guava-25-1-released
正文到此结束
Loading...