-
Notifications
You must be signed in to change notification settings - Fork 135
Bump error-prone to 2.40.0 #3165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Generate changelog in
|
| } | ||
| Types types = state.getTypes(); | ||
| if (ASTHelpers.findSuperMethod(ASTHelpers.getSymbol(tree), types).isPresent()) { | ||
| if (!ASTHelpers.findSuperMethods(ASTHelpers.getSymbol(tree), types).isEmpty()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this flip?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
findSuperMethod got deleted, we have to use findSuperMethods that returns a Set instead of a single value from the set. So checking the set is non-empty should be the same as the old logic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah - didn't see the change of the "s"
|
Released 6.42.0 |
Before this PR
Internally, repos are being trying to take an upgrade of
com.github.ben-manes.caffeine:caffeineto3.2.2. This release of caffeine bumps the dependency oferror_prone_annotationsto 2.44.0.Since we use gradle-consistent-versions and have a virtual platform for
com.google.errorprone:*, this also bumps the version oferror_prone_check_apiused in theannotationProcessorconfigruation:The current latest
baseline-error-pronethat is running inside the build called theASTHelpers.findSuperMethodwhich got deleted in error-prone 2.39.0 (PR). This causes this error:After this PR
==COMMIT_MSG==
Upgrade error-prone to 2.40.0 and stop errors of the form when error-prone >2.39.0 is used:
==COMMIT_MSG==
Upgrading allows people to upgrade dependencies that use error-prone-annotations >2.39.0.
Possible downsides?
baseline-error-proneuses a previously published version ofbasline-error-pronefor it's own compilation. When we upgradeerror-proneinversions.props, we upgrade theerror-proneused by the previousbaseline-error-pronein compilation. I've worked around this usingenforcedPlatform(which might even be a nice trick to stop this kind of error happening in consumer repos - but needs more though).We need to verify that the new checks added are reasonable and if we want them to autofix:
Boolean.TRUE::equalsthat we have a few instances of internally.@Qualiferinternally.We also need to check that suppressible-error-prone works with 2.40.0 - I tried it on this PR and the test suites passed on this build.