Make our Collector
APIs available in guava-android
.
#7194
Merged
+192
−57
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Make our
Collector
APIs available inguava-android
.(for example,
ImmutableList.toImmutableList()
)For now, we're making them
@Beta
just in case users encounter enough problems that we find it less disruptive to revert this change than to keep it. However, we plan to remove@Beta
soon, at which point we'll be committed to this APIs. If you use Guava under Android, please test with Guava 33.0.0 or higher, ideally with 34.0.0 or higher (which will contain this commit), and report any problems.Our expectation is that this commit should not cause problems, even for users who don't use enable library desugaring. But we will see what happens in wild.
Of course, if you want to actually use these APIs, then you'll need to enable library desugaring or target a new enough version of Android, just as with any other
Stream
-based APIs.(progress toward #6567)
RELNOTES=
collect
: Made ourCollector
APIs (e.g.,ImmutableList.toImmutableList()
) available inguava-android
.