Repository navigation
JSpecify: Apply annotations on type variables to lambdas in more cases - #1428
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1428 +/- ##
============================================
- Coverage 88.45% 88.44% -0.02%
- Complexity 2664 2672 +8
============================================
Files 97 97
Lines 8830 8852 +22
Branches 1767 1772 +5
============================================
+ Hits 7811 7829 +18
- Misses 506 507 +1
- Partials 513 516 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
WalkthroughThis PR enhances NullAway's lambda nullability inference in generic contexts by introducing caching of lambda target types and standardizing assignment-target checks. The main changes include adding Possibly related PRs
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro 📒 Files selected for processing (2)
🧰 Additional context used🧠 Learnings (5)📓 Common learnings📚 Learning: 2025-08-28T04:54:20.953ZApplied to files:
📚 Learning: 2025-10-29T23:56:18.236ZApplied to files:
📚 Learning: 2025-12-31T23:59:13.310ZApplied to files:
📚 Learning: 2025-08-14T18:50:06.159ZApplied to files:
🔇 Additional comments (6)
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 |
Consider this example:
NullAway should produce an error at
t.length()sincetmay be null. Before this PR, NullAway would not give an error, since for aFoo<String> foo, it treated the type of the formal parameter asFunction<String, String>, without considering the@Nullableannotation inFunction<@Nullable T, T>. This PR closes that gap, both for passing lambdas as parameters and for assigning them to fields.Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.