Repository navigation
Cleanup: centralize lambda and method-reference type lookup - #2070
Conversation
Add GenericsChecks.getPolyExpressionType to prefer NullAway's inferred type and fall back to javac's attributed type. Use the shared lookup in override checking, lambda dataflow initialization, contract handling, and explicit lambda parameter checks, preserving raw-target filtering in the latter. Validation: ./gradlew :nullaway:test :nullaway:buildWithNullAway passes; all changed executable lines and branches are covered. Assisted-by: Codex (gpt-6)
|
No actionable comments were generated in the recent review.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2070 +/- ##
============================================
- Coverage 89.20% 89.19% -0.02%
Complexity 38 38
============================================
Files 119 119
Lines 12776 12758 -18
Branches 2592 2586 -6
============================================
- Hits 11397 11379 -18
Misses 623 623
Partials 756 756 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Add
GenericsChecks.getPolyExpressionTypeto prefer NullAway's inferred type and fall back to javac's attributed type, capturing a repeated pattern in the code. Use the shared lookup in override checking, lambda dataflow initialization, contract handling, and explicit lambda parameter checks, preserving raw-target filtering in the latter. No logic changes.Validation:
./gradlew :nullaway:test :nullaway:buildWithNullAwaypasses;all changed executable lines and branches are covered.
Assisted-by: Codex (gpt-6)
Summary by CodeRabbit