Guava 24.0 已正式发布,Guava 工程包含了若干被 Google 的 Java 项目广泛依赖的核心库,例如:集合 [collections] 、缓存 [caching] 、原生类型支持 [primitives support] 、并发库 [concurrency libraries] 、通用注解 [common annotations] 、字符串处理 [string processing] 、I/O 等等。 在该版本中,移除了不少弃用的方法,也增加了不少新的方法,如在网络方面,新增了 HttpHeaders.HTTP2_SETTINGS,具体更新如下: base: Removed deprecated Predicates.assignableFrom(Class). (d57a40e) collect: Removed deprecated BinaryTreeTraverser. (f91ef6c) concurrent: Removed deprecated Futures.dereference and MoreExecutors.sequentialExecutor. (f91ef6c) graph: Removed deprecated Graphs.equivalent() (41fa39f) graph: Added incidentEdges() method to Graph and ValueGraph. (d788bc1) net: Added HttpHeaders.HTTP2_SETTINGS header according to http://httpwg.org/specs/rfc7540.html#Http2SettingsHeader (393066e) net: Added MediaType.withParameters method that can replace a specific attribute with zero or more values. (7da42d2) Maven <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> <version>24.0-jre</version> <!-- or, for Android: --> <version>24.0-android</version> </dependency> 源码下载和发布说明:https://github.com/google/guava/releases/tag/v24.0 谷歌的 Java 核心工具库 Guava 发布 24.0 正式版本下载地址