Bump guava from 30.1.1-jre to 31.0-jre
Bumps guava from 30.1.1-jre to 31.0-jre.
Release notes
Sourced from guava's releases.
31.0
Maven
<dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> <version>31.0-jre</version> <!-- or, for Android: --> <version>31.0-android</version> </dependency>
Jar files
Guava requires one runtime dependency, which you can download here:
Javadoc
JDiff
Changelog
- Changed
guava-android
to generate Java 8 bytecode. We still restrict ourselves to using APIs available on Ice Cream Sandwich. So, as long as you have enabled Java 8 language features for your Android build, this change should have no effect on Android projects. This change does drop support for Java 7 JREs, as announced last year.- Annotated Guava much more thoroughly for nullness. For details, see the bottom of the release notes.
base
: ChangedFunctions.forSupplier
andPredicates.instanceOf
to accept an additional type argument to specify the input type for the returnedFunction
/Predicate
. The flexibility we're adding should typically not be necessary if users follow the PECS principle, but it can be useful in some cases, particularly around nullness analysis. Note that this change may require updates to callers' source code (to specify an additional type argument). Still, it maintains binary compatibility. (75110e936d)collect
: AddedImmutableMap.ofEntries
, likeMap.ofEntries
but forImmutableMap
. (cd3b4197fb)collect
: Added overloads ofImmutableMap.of
,ImmutableBiMap.of
, andImmutableSortedMap.of
for up to 10 entries. (d5c30e3f19)collect
: RenamedImmutableMap.Builder.build()
tobuildOrThrow()
. The existingbuild()
method will continue to exist but may be deprecated, and the new name should be used in new code. (4bbe12c4e0)collect
: Removed@Beta
fromInterner
andInterners
. (cf31f3a31d)collect
: Added@InlineMe
toStreams.stream(Optional)
and friends. (a176cd60f1)graph
: MadeEndpointPair.adjacentNode
require anN
instead of accept anyObject
. (b0be21d46c)hash
: Removed@Beta
fromHashFunction
. (e1cc195cfb)hash
: Deprecated buggymurmur3_32
, and introducedmurmur3_32_fixed
. (a36f08fe31)io
: ChangedCharStreams.asWriter(appendable).write(string[, ...])
to reject a nullstring
. (50e7dddf5c)io
: Fixed a bug inFileBackedOutputStream
cleanup: If writing to the temp file fails, we now delete it before propagating the exception. (6e054cea7b)net
: ChangedHostAndPort.fromString
to reject port numbers spelled with non-ASCII digits. (53fd1d7612)net
: AddedHttpHeaders
constants forX-Device-Ip
,X-Device-Referer
,X-Device-Accept-Language
,X-Device-Requested-With
,Sec-CH-Prefers-Color-Scheme
,Sec-CH-UA-Bitness
, andKeep-Alive
. (da375be86a, b23b277422, 281edd4b6e, 9c88f9ad6d)
... (truncated)
Commits
- See full diff in compare view