v28.2
版本发布时间: 2019-12-27 22:02:35
google/guava最新发布版本:v33.3.1(2024-09-24 04:55:13)
Maven
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>28.2-jre</version>
<!-- or, for Android: -->
<version>28.2-android</version>
</dependency>
Javadoc
JDiff
Changelog
-
Warning to users of GWT-RPC: The first Guava release of 2020 will remove support for GWT-serializing Guava types. To test ahead of time with GWT-RPC support for Guava types disabled, set the
guava.gwt.emergency_reenable_rpc
system property tofalse
. (Even without the system property enabled, apps will now log warnings when sending Guava types over GWT-RPC.) (08bbf53ab0) -
base
: AddedSplitter.splitToStream()
. -
concurrent
: AddedFutures.submit()
(c7ef0cc93b) -
concurrent
: MadeplatformThreadFactory()
and related utilities (mainly*Service
) work under Java 11 App Engine, and tweaked other App Engine threading behavior. (e3ee00d6769d219c9646a17114fa00e2955b54aa) -
concurrent
: Addedcatch
toStackOverflowError
inAbstractFuture.toString
to prevent long chains of futures from failingtoString
calls. (a2e6acc009) -
concurrent
: MadeListenableFuture
implementThenable
via a default interface method in GWT/j2cl (e0bac74571). -
graph
: Fixed bug inAbstractNetwork.hasEdgeConnecting()
causing it to throw if either endpoint was not in the graph. Originally reported as #3721. (2ee7f9da69) -
graph
: Fixed data race. (0e94fb5bb8) -
math
: AddedStream
support toStats
andStatsAccumulator
. (e2f4eba636) -
math
: AddedQuantiles
compute()
methods which return aMap
now return a map with entries in the same order in which the indexes were provided. (786c3d84f1) -
net
: Added support for scope IDs for IPv6 addresses. (8a7d36a8e5044096919a3512aa6734c95032f38c) -
net
: AddedtoBigInteger
andfromIpv4BigInteger
/fromIpv6BigInteger
toInetAddresses
for manipulatingInetAddresses
asBigIntegers
(d7a0b3d367) -
net
: AddedMediaType
constants for application/opensearchdescription+xml (f79c4fe0a7) and MPEG-DASH (67dd062cb9), as well as a constant for the header Cross-Origin-Opener-Policy (4ef2111641). -
net
: MadeMediaType
reject empty type, subtype, and attribute (b080067) and non-ASCII parameter values (2278123479). Also, made it serialize empty parameter values to quoted strings (2278123479). - Added
@DoNotMock
to several types. (4eea0f79c2, add430908ec77c1859f84bd753b84a5eca57b327) - Removed dependency on
animal-sniffer-annotations
. (5f37e53fd7)