Repository navigation
Releases
Releases · google/guava
26.0
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
JDiff
Changelog
base: Removed deprecatedpublic staticfields fromCharMatcher. Use the equivalentpublic staticmethods instead. (f1249c4)base: Fixed theServiceConfigurationErrorthat some users encountered when using Guava as a JPMS module. (8287cdf)cache: Fixed a bug whereCache.asMap.compute*methods could cause nonsensical weights to be stored, breaking cache eviction. (15764d7)concurrent: Removed deprecatedFuturesmethods that implicitly usedirectExecutor(). (87d87f5)concurrent: AddedExecutionSequencer, a new utility to run a series of asynchronous operations serially. (8d1fbc9)concurrent: Removed special-casingUndeclaredThrowableExceptioninFutures.transform(). (9466b62)net: ChangedHostAndPort.equals()andhashCode()to stop depending on whether brackets were included. Now they depend only on host and port. (34c1616)net: AddedHttpHeadersconstant for Sec-Metadata header. (986a3a3)net: AddedMediaTypefor "application/hal+json". (fea88fe)
23.6.1
Maven
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>23.6.1-jre</version>
<!-- or, for Android: -->
<version>23.6.1-android</version>
</dependency>Javadoc
JDiff
Changelog
- Fixed Denial of Service vulnerability for servers that use Guava and deserialize attacker data: CVE-2018-10237. (a81698a)
25.1
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
@Nullabletype annotations) - 25.1-android vs. 25.0-android
- 25.1-android vs. 25.1-jre
Changelog
- Switched to the type annotation version of
@Nullablein the JRE/Java 8 flavor. (0a2258e) base: AddedStrings.lenientFormat(), copied fromPreconditions.format(). (7fe1702)net: Added Token Binding HTTP headers toHttpHeaders. (d9113d5)reflect: Added overrides for methods on JDK types returningAnnotatedTypein the JRE/Java 8 flavor. (d94eb93)testing: Added support for type annotations inNullPointerTesterin the JRE/Java 8 flavor. (d94eb93)util.concurrent: Added@DoNotCalltoFuturesmethods that do not accept anExecutorin preparation for removal. (49a1df6)
24.1.1
Note that we've also released Guava 25.0, which contains the change in 24.1.1 and some additional changes.
Maven
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>24.1.1-jre</version>
<!-- or, for Android: -->
<version>24.1.1-android</version>
</dependency>Javadoc
JDiff
(There are no API diffs from 24.1. Our release tooling generated the following diffs against the newer 25.0, which doesn't really make sense. We'll try to get that fixed for future patch releases.)
Changelog
- Fixed Denial of Service vulnerability for servers that use Guava and deserialize attacker data: CVE-2018-10237. (7ec8718)
25.0
Maven
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>25.0-jre</version>
<!-- or, for Android: -->
<version>25.0-android</version>
</dependency>Javadoc
JDiff
Changelog
- Fixed Denial of Service vulnerability for servers that use Guava and deserialize attacker data: CVE-2018-10237. (f89ece5)
cache: Addedjava.time.Durationoverloads toCacheBuilder. (9bf6d95)io: Removed deprecatedFiles.fileTreeTraverser()andMoreFiles.directoryTreeTraverser(). (ce6d93c)
24.1
Maven
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>24.1-jre</version>
<!-- or, for Android: -->
<version>24.1-android</version>
</dependency>Javadoc
JDiff
Changelog
collect: Added hash flooding protection toImmutableSet,ImmutableMultiset,ImmutableMapandImmutableBiMapgraph: Added support for traversing from multiple start nodes inTraverser. (cbc5308)net: Added X-Download-Options header toHttpHeaders(9b9a175)net: Added L16 audio constant toMediaType
24.0
Maven
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>24.0-jre</version>
<!-- or, for Android: -->
<version>24.0-android</version>
</dependency>Javadoc
JDiff
Changelog
base: Removed deprecatedPredicates.assignableFrom(Class). (d57a40e)collect: Removed deprecatedBinaryTreeTraverser. (f91ef6c)concurrent: Removed deprecatedFutures.dereferenceandMoreExecutors.sequentialExecutor. (f91ef6c)graph: Removed deprecatedGraphs.equivalent()(41fa39f)graph: AddedincidentEdges()method toGraphandValueGraph. (d788bc1)net: AddedHttpHeaders.HTTP2_SETTINGSheader according to http://httpwg.org/specs/rfc7540.html#Http2SettingsHeader (393066e)net: AddedMediaType.withParametersmethod that can replace a specific attribute with zero or more values. (7da42d2)
23.6
Maven
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>23.6-jre</version>
<!-- or, for Android: -->
<version>23.6-android</version>
</dependency>Javadoc
JDiff
Changelog
concurrent: AddedUninterruptiblesmethods forCondition. (794a8ca)concurrent: Added arunmethod toFutureCombinerto allow passing aRunnabletoFutures.whenAllCompleteandFutures.whenAllSucceed(de28fd8)concurrent: MadeFutures.getUncheckedavailable under GWT. (b1d9d99)net: Added "Server-Timing" HTTP header toHttpHeadersaccording to https://www.w3.org/TR/server-timing/ (f089e55)testing: Started recognizing@NullableDeclinNullPointerTesterand friends.- Migrated from
jsr305@Nullableto the Checker Framework@NullableDecl. Tools that read these annotations may need to be updated to recognize the new annotation. For Kotlin in particular, we sent a pull request, which has been merged for 1.2.20. - Migrated from
jsr305@CheckReturnValue,@GuardedByand@OverridingMethodsMustInvokeSuperto the Error Prone equivalents.
23.5
Maven
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>23.5-jre</version>
<!-- or, for Android: -->
<version>23.5-android</version>
</dependency>Javadoc
JDiff
Changelog
base: GraduatedVerifyandVerifyExceptionfrom@Beta. (0ad9c44)collect:ImmutableMap.getOrDefaultis now also available in the Android flavor. (1e4938c)graph: Tightened the contract for the edge-adding methods onMutable{Graph, Network, ValueGraph}. This is a breaking change; implementors of these interfaces should verify that they still comply with this contract. (ec48806)io: AddedFiles.fileTraverser()andMoreFiles.fileTraverser(). (af7514a)io: DeprecatedFiles.fileTreeTraverser()andMoreFiles.directoryTreeTraverser(). (1644f6e)- Migrated from jsr305's
@Immutableto Error Prone's. (901e985) - Added a dependency on, but did not begin using, the Checker Framework's annotations. We expect to begin using it in a future release.
- If you're using
maven-plugin-plugin, the Checker Framework dependency may trigger a bug. To fix it, upgrademaven-plugin-pluginto 3.5. We expect this problem to go away with Guava 23.6, which will change to a different Checker Framework dependency.
- If you're using
23.4
Maven
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>23.4-jre</version>
<!-- or, for Android: -->
<version>23.4-android</version>
</dependency>Javadoc
JDiff
Changelog
collect: Added support for emptyArrayTable.net: AddedReferrer-PolicytoHttpHeaders, along with possible values for that header inReferrerPolicyValues. (19b4d97)util.concurrent: Adjusted the interruption behavior ofMoreExecutors.sequentialExecutor()to run tasks without aThreadinterrupt marked (previously, interrupts leaked between tasks). If theThreadwas interrupted when theExecutorreceived it or during execution of its tasks, the thread will be re-interrupted before being yielded. Expanded the documentation ofMoreExecutors.sequentialExecutor()to cover interruption and rejected execution behavior in detail. (40564c7)- Upgraded the version of GWT we test with to 2.8.2. We haven't yet intentionally depended on this new version, but now that we're testing with it, we may come to depend on it accidentally.