Skip nested annotation restoration from raw source types - #1898
Conversation
When javac captures a wildcard, its computed upper bound can have type arguments even when the corresponding declaration bound is raw. Restore direct nullability annotations, but do not traverse type arguments of a raw source type. Add a minimized regression test for uber#1897. Tests: - ./gradlew :nullaway:test - ./gradlew :nullaway:buildWithNullAway Fixes uber#1897 Assisted-by: Codex (gpt-6)
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: uber/NullAway/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review. Walkthrough
Priority: ➖ Normal Change: Bug fix · Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to The raw-bound wildcard case has regression coverage, and no material merge-blocking issue remains. Proceed with normal checks. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1898 +/- ##
=========================================
Coverage 87.67% 87.67%
Complexity 3499 3499
=========================================
Files 110 110
Lines 11641 11641
Branches 2403 2403
=========================================
Hits 10206 10206
Misses 657 657
Partials 778 778 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
When javac captures a wildcard, its computed upper bound can have type arguments even when the corresponding declaration bound is raw. Restore direct nullability annotations, but do not traverse type arguments of a raw source type.
Add a minimized regression test for #1897.
Fixes #1897
Assisted-by: Codex (gpt-6)
Summary by CodeRabbit