Skip to content

Enable HandleWildcardGenerics flag when building NullAway#1586

Merged
msridhar merged 1 commit into
masterfrom
enable-wildcard-checking-when-building-nullaway
May 25, 2026
Merged

Enable HandleWildcardGenerics flag when building NullAway#1586
msridhar merged 1 commit into
masterfrom
enable-wildcard-checking-when-building-nullaway

Conversation

@msridhar
Copy link
Copy Markdown
Collaborator

@msridhar msridhar commented May 25, 2026

Wildcard generics checking is still too buggy to recommend to all, but we should run it on NullAway code to catch more issues with it.

Also remove AcknowledgeRestrictiveAnnotations as that is redundant with JSpecify mode.

@msridhar
Copy link
Copy Markdown
Collaborator Author

This change is part of the following stack:

Change managed by git-spice.

@msridhar msridhar enabled auto-merge (squash) May 25, 2026 19:19
@msridhar msridhar requested review from seemantasaha and yuxincs May 25, 2026 19:19
@codecov
Copy link
Copy Markdown

codecov Bot commented May 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.19%. Comparing base (31b14ce) to head (f2e7f8d).

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #1586   +/-   ##
=========================================
  Coverage     88.19%   88.19%           
  Complexity     2947     2947           
=========================================
  Files           104      104           
  Lines          9842     9842           
  Branches       1982     1982           
=========================================
  Hits           8680     8680           
  Misses          560      560           
  Partials        602      602           

☔ 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.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 25, 2026

Walkthrough

This pull request modifies the buildWithNullAway Error Prone/NullAway configuration in the Gradle build file. The NullAway:AcknowledgeRestrictiveAnnotations option was removed from the checker options block, and a new NullAway:HandleWildcardGenerics option was added. The existing NullAway:CheckContracts and NullAway:JSpecifyMode options remain in place with adjusted formatting and ordering.

Possibly related PRs

  • uber/NullAway#1548: Adds wildcard generic containment checking logic that directly depends on the NullAway:HandleWildcardGenerics configuration being enabled.
  • uber/NullAway#1549: Implements constraint solver wildcard generic inference that is gated by the NullAway:HandleWildcardGenerics option being enabled in this configuration change.
  • uber/NullAway#1330: Also modifies the buildWithNullAway Error Prone/NullAway options in the same Gradle configuration file, changing the NullAway option set within the same task.

Suggested reviewers

  • yuxincs
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically describes the main change: enabling the HandleWildcardGenerics flag in the NullAway build configuration, which matches the actual modification in the buildWithNullAway task.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
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 enable-wildcard-checking-when-building-nullaway

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.

@msridhar msridhar merged commit f790ac9 into master May 25, 2026
12 of 14 checks passed
@msridhar msridhar deleted the enable-wildcard-checking-when-building-nullaway branch May 25, 2026 19:41
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.

2 participants