转载

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

Guava 26.0 已发布,更新如下:

  • base : Removed deprecated  public static fields from  CharMatcher . Use the equivalent  public static methods instead. ( f1249c4 )

  • base : Fixed the  ServiceConfigurationError that some users encountered when using Guava as a JPMS module. ( 8287cdf )

  • cache : Fixed a bug where  Cache.asMap.compute* methods could cause nonsensical weights to be stored, breaking cache eviction. ( 15764d7 )

  • concurrent : Removed deprecated  Futures methods that implicitly use  directExecutor() . ( 87d87f5 )

  • concurrent : Added  ExecutionSequencer , a new utility to run a series of asynchronous operations serially. ( 8d1fbc9 )

  • concurrent : Removed special-casing  UndeclaredThrowableException in  Futures.transform() . ( 9466b62 )

  • net : Changed  HostAndPort.equals() and  hashCode() to stop depending on whether brackets were included. Now they depend only on host and port. ( 34c1616 )

  • net : Added  HttpHeaders constant for Sec-Metadata header. ( 986a3a3 )

  • net : Added  MediaType for "application/hal+json". ( fea88fe )

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>26.0-jre</version>
  <!-- or, for Android: -->
  <version>26.0-android</version>
</dependency>

Javadoc

  • 26.0-jre

  • 26.0-android

JDiff

  • 26.0-jre vs. 25.1-jre

  • 26.0-android vs. 25.1-android

  • 26.0-android vs. 26.0-jre

下载地址:

原文  https://www.oschina.net/news/98588/guava-26-0-released
正文到此结束
Loading...