Skip to content

Update to Error Prone 2.49.0 - #1514

Merged
msridhar merged 6 commits into
masterfrom
ep-2.49.0
Apr 8, 2026
Merged

msridhar merged 6 commits into
masterfrom
ep-2.49.0

Conversation

@msridhar

@msridhar msridhar commented Apr 7, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #1511

Remove uses of some deprecated classes / methods that were deleted. Also, the ASTHelpers.enclosingPackage method changed in a backward-incompatible way; (re-)introduce ASTHelpersBackports so we have a method we can call across versions consistently.

Also, fix a couple of new warnings.

Summary by CodeRabbit

  • Chores

    • Updated Error Prone toolchain to version 2.49.0.
  • Style

    • Cleaned up code comments and documentation annotations across multiple files.
  • Refactor

    • Internal refactoring of package lookup utilities and stream type predicate handling.
  • Tests

    • Updated test cases to use default behavior in test helpers.

@codecov

codecov Bot commented Apr 7, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 77.77778% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.46%. Comparing base (97707ed) to head (1730317).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
...in/java/com/uber/nullaway/ASTHelpersBackports.java 66.66% 1 Missing and 1 partial ⚠️
...ain/java/com/uber/nullaway/CodeAnnotationInfo.java 66.66% 0 Missing and 2 partials ⚠️
...in/java/com/uber/nullaway/dataflow/AccessPath.java 50.00% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1514      +/-   ##
============================================
- Coverage     88.47%   88.46%   -0.02%     
- Complexity     2838     2840       +2     
============================================
  Files           101      102       +1     
  Lines          9461     9478      +17     
  Branches       1896     1901       +5     
============================================
+ Hits           8371     8385      +14     
- Misses          529      530       +1     
- Partials        561      563       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@msridhar
msridhar marked this pull request as ready for review April 7, 2026 19:05
@msridhar
msridhar requested a review from lazaroclapp April 7, 2026 19:06
@msridhar msridhar changed the title [wip] Update to Error Prone 2.49.0 Update to Error Prone 2.49.0 Apr 7, 2026
@coderabbitai

coderabbitai Bot commented Apr 7, 2026 •

Copy link
Copy Markdown
Contributor

Walkthrough

This PR bumps the Error Prone dependency from version 2.48.0 to 2.49.0 in the build configuration. It introduces a new ASTHelpersBackports utility class to wrap enclosingPackage() functionality as an Optional, updates existing code to use this new backport instead of Error Prone's ASTHelpers.enclosingPackage(), replaces direct usage of Error Prone's DescendantOf class with TypePredicates.isDescendantOf() factory method, switches to Objects.equals() for symbol comparison, updates test helper invocations to use default behavior, and corrects documentation formatting in multiple files.

Possibly related issues

Possibly related PRs

Suggested reviewers

  • lazaroclapp
  • yuxincs
🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 30.77% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The pull request title accurately summarizes the primary change: updating the Error Prone dependency to version 2.49.0, which is reflected in the gradle/libs.versions.toml file and drives all subsequent code changes.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ep-2.49.0

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

" }",
"}")
.doTest(BugCheckerRefactoringTestHelper.TestMode.TEXT_MATCH); // Yes we can!
.doTest(); // Yes we can!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume this became the default mode?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup! And they deprecated the previous method, which started throwing up warnings in our build

@msridhar
msridhar enabled auto-merge (squash) April 8, 2026 19:27
@msridhar
msridhar merged commit 14f12d3 into master Apr 8, 2026
6 of 8 checks passed
@msridhar
msridhar deleted the ep-2.49.0 branch April 8, 2026 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incompatibility with Error Prone 2.49.0

2 participants