v30.1
版本发布时间: 2020-12-15 01:01:27
google/guava最新发布版本:v33.3.1(2024-09-24 04:55:13)
Maven
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>30.1-jre</version>
<!-- or, for Android: -->
<version>30.1-android</version>
</dependency>
Javadoc
JDiff
Changelog
- If you use guava-android in an Android project (as opposed to from a Java VM), you will need to enable desugaring of Java 8 language features if you have not already done so. (And if you are releasing an Android library, then anyone who uses that library will also have to enable desugaring.) We expect for nearly all Android projects to have already enabled desugaring. But if this causes problems for you, please let us know on issue #5358. The purpose of this change is to detect potential problems for users now so that we can plan to use Java 8 language features in our implementation later this year.
- Introduced a warning log message when running
guava-android
under a Java 7 VM. (Android VMs are unaffected, aside from the need to use desugaring, described in the previous bullet.) This warning is not guaranteed to be logged when running under Java 7, so please don't rely on it as your only warning about future problems. If the warning itself causes you trouble, you can eliminate it by silencing the logger forcom.google.common.base.MoreObjects$ToStringHelper
(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, there is the potential forNullPointerException
or even deadlock. (To be clear, Guava will not log under Java 8 or Android, but it may log under Java 7.) (dc52e6e385)- Note that we subsequently made this warning more aggressive in Guava 30.1.1, including changing the logger it uses to
com.google.common.base.Preconditions
.
- Note that we subsequently made this warning more aggressive in Guava 30.1.1, including changing the logger it uses to
-
base
: DeprecatedStandardSystemProperty.JAVA_EXT_DIRS
. We do not plan to remove the API, but note that, under recent versions of Java, that property always has a value ofnull
. (38abf07772) -
net
: AddedHttpHeaders
constants forOrigin-Isolation
andX-Request-ID
. (a48fb4f724, 8319d201cd) -
reflect
: AddedClassInfo.isTopLevel()
. (410627262b) -
util.concurrent
: AddedClosingFuture.submitAsync(AsyncClosingCallable)
. (c5e2d8d5cb)