Repository navigation
Remove ClassValue implementation of Futures.getChecked from the Android flavor. - #5693
Closed
copybara-service[bot] wants to merge 1 commit into
Closed
copybara-service[bot] wants to merge 1 commit into
copybara-service[bot] wants to merge 1 commit into
Conversation
…ndroid flavor. It doesn't work there, even under new versions of Android, so it always triggers fallback, and the process of falling back burns resources and produces noise. (JRE users of guava-android could benefit from the `ClassValue` implementation, but now that we're dropping support for Java 7 from guava-android, there's no reason for them to use it. OK, probably some users run _Robolectric_ tests against guava-android. But presumably they aren't _too_ sensitive to the performance of `getChecked` in the failure case.) Removing `ClassValue` support also lets us remove a bunch of Animal-Sniffer cruft. That includes upgrading it to 1.19, which in turn forces us to remove some usages of new APIs from our _tests_ -- not nearly as important as usages in _prod_ but still a good idea so that any future Android test failures are reported to us correctly instead of hidden by `NoSuchMethodError` or similar. Or actually, Animal-Sniffer 1.20 [turned checking of test sources back off](mojohaus/animal-sniffer@ac40ac4), but let's opt in anyway, at least to see how it goes, at least for the tests of guava-testlib. (guava-tests itself is more of a pain, so I left a TODO.) RELNOTES=n/a PiperOrigin-RevId: 391758063
copybara-service
Bot
force-pushed
the
test_391758063
branch
from
August 19, 2021 16:22
8fdc988 to
19fcdc6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Remove
ClassValueimplementation ofFutures.getCheckedfrom the Android flavor.It doesn't work there, even under new versions of Android, so it always triggers fallback, and the process of falling back burns resources and produces noise.
(JRE users of guava-android could benefit from the
ClassValueimplementation, but now that we're dropping support for Java 7 from guava-android, there's no reason for them to use it. OK, probably some users run Robolectric tests against guava-android. But presumably they aren't too sensitive to the performance ofgetCheckedin the failure case.)Removing
ClassValuesupport also lets us remove a bunch of Animal-Sniffer cruft. That includes upgrading it to 1.19, which in turn forces us to remove some usages of new APIs from our tests -- not nearly as important as usages in prod but still a good idea so that any future Android test failures are reported to us correctly instead of hidden byNoSuchMethodErroror similar. Or actually, Animal-Sniffer 1.20 turned checking of test sources back off, but let's opt in anyway, at least to see how it goes, at least for the tests of guava-testlib. (guava-tests itself is more of a pain, so I left a TODO.)RELNOTES=n/a