Guava 25.1 已发布,更新如下:
Switched to the type annotation version of
@Nullable
in the JRE/Java 8 flavor.base
: AddedStrings.lenientFormat()
, copied fromPreconditions.format()
.net
: Added Token Binding HTTP headers toHttpHeaders
.reflect
: Added overrides for methods on JDK types returningAnnotatedType
in the JRE/Java 8 flavor.testing
: Added support for type annotations inNullPointerTester
in the JRE/Java 8 flavor.util.concurrent
: Added@DoNotCall
toFutures
methods that do not accept anExecutor
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
JDiff
25.1-jre vs. 25.0-jre (shows a lot of junk, probably due to switch to
@Nullable
type annotations)