You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bump minimum Error Prone version supported to 2.36.0 #1396
(Updated from original description based on a comment below)
The release date of 2.36.0 was Nov 18, 2024, so more than a year ago at this point. We've tended to support even older versions of Error Prone, so this would be a change. The motivation would be to add full support for switch expressions (#1402); we currently do not warn on certain possible NPEs with such expressions. Unfortunately, if we bump our minimum EP version to 2.36.0, NullAway would no longer run on previous versions (since NullAway would implement the BugChecker.SwitchExpressionTreeMatcher interface, which doesn't exist in previous Error Prone versions).
If anyone has any concerns about bumping the minimum support Error Prone version to 2.36.0 please comment here.
A summary of possible cleanups enabled by bumping the minimum supported Error Prone version is below. Given the extra possible simplification in NullAway::getSymbolForMethodInvocation I say we go to 2.25.0 at a minimum.
Also, given #1402 we might just want to bump to 2.36.0, so we can properly check for NPEs due to unboxing in switch expressions.
Annotated packages list includes com.google.common because EP 2.14.0 doesn't read @NullMarked from package-info.java; remove when minimum EP is bumped.
changed the title [-]Bump minimum Error Prone version supported to 2.24.0[/-][+]Bump minimum Error Prone version supported to 2.25.0, possibly 2.36.0[/+]on Dec 26, 2025
changed the title [-]Bump minimum Error Prone version supported to 2.25.0, possibly 2.36.0[/-][+]Bump minimum Error Prone version supported to 2.36.0[/+]on Dec 26, 2025
If anyone has any concerns about bumping the minimum support Error Prone version to 2.36.0 (to get full support for switch expressions) please comment here. The release date was Nov 18, 2024, so more than a year ago at this point. Note that NullAway would probably still work on older Error Prone versions for code that doesn't use switch expressions, but we would stop testing it so eventually it might break.
Activity
coderabbitai commentedon Dec 23, 2025
📝 CodeRabbit Plan Mode
Generate an implementation plan and prompts that you can use with your favorite coding agent.
Examples
🔗 Similar Issues
Related Issues
🔗 Related PRs
#1239 - Update to Error Prone 2.41.0 [merged]
#1299 - Update to Error Prone 2.42.0 [merged]
#1401 - Update to Error Prone 2.45.0 [merged]
👤 Suggested Assignees
🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your
.coderabbit.yaml:💬 Have feedback or questions? Drop into our discord!
Require JDK 17 to run NullAway (#1394)
msridhar commentedon Dec 26, 2025
A summary of possible cleanups enabled by bumping the minimum supported Error Prone version is below. Given the extra possible simplification in
NullAway::getSymbolForMethodInvocationI say we go to 2.25.0 at a minimum.Also, given #1402 we might just want to bump to 2.36.0, so we can properly check for NPEs due to unboxing in switch expressions.
Main code
Test code
[-]Bump minimum Error Prone version supported to 2.24.0[/-][+]Bump minimum Error Prone version supported to 2.25.0, possibly 2.36.0[/+][-]Bump minimum Error Prone version supported to 2.25.0, possibly 2.36.0[/-][+]Bump minimum Error Prone version supported to 2.36.0[/+]msridhar commentedon Dec 26, 2025
If anyone has any concerns about bumping the minimum support Error Prone version to 2.36.0 (to get full support for switch expressions) please comment here. The release date was Nov 18, 2024, so more than a year ago at this point. Note that NullAway would probably still work on older Error Prone versions for code that doesn't use switch expressions, but we would stop testing it so eventually it might break.
Update minimum supported Error Prone version to 2.25.0 (#1421)
Bump minimum Error Prone version to 2.36.0, and add detection of null…
msridhar commentedon Jan 17, 2026
This change will be included in NullAway 0.13.0