v30.1.1
版本发布时间: 2021-03-20 00:23:08
google/guava最新发布版本:v33.3.1(2024-09-24 04:55:13)
Maven
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>30.1.1-jre</version>
<!-- or, for Android: -->
<version>30.1.1-android</version>
</dependency>
Jar files
Guava requires one runtime dependency, which you can download here:
Javadoc
JDiff
Changelog
- Increased the aggressiveness of Guava 30.1's warning log message for running
guava-android
under a Java 7 VM. (Android VMs are unaffected.) If the warning itself causes you trouble, you can eliminate it by silencing the logger forcom.google.common.base.Preconditions
(which is used only for this warning). This warning prepares for removing support for Java 7 in 2021. Please report any problems. We have tried to make the warning as safe as possible, but anytime a common library logs, especially as aggressively as we do in this new release, there is the potential forNullPointerException
or even deadlock. (To be clear, Guava will not log under Java 8 or Android, but it will under Java 7.) (00c25e9b11) -
cache
: Fixed compatibility betweenasMap().compute(...)
and a load. (42bf4f4eb7) -
cache
: Added@CheckReturnValue
to some APIs. (a5ef129ffc) -
collect
: Added@DoNotCall
to the mutator methods on immutable types (6ae9532d11) -
hash
: Removed@Beta
fromHashCode
. (2c9f161e10) -
io
: Removed@Beta
fromCountingOutputStream
. (d394bac847)