Repository navigation
Rename getExecutableTypeForInference and improve Javadoc - #1709
Conversation
|
This change is part of the following stack:
Change managed by git-spice. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 8 included reviews per hour; 3 remain after this review. WalkthroughThe private Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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 #1709 +/- ##
=========================================
Coverage 87.79% 87.79%
Complexity 3208 3208
=========================================
Files 109 109
Lines 10898 10898
Branches 2202 2202
=========================================
Hits 9568 9568
Misses 630 630
Partials 700 700 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
424bb81 to
deab96d
Compare
deab96d to
71ae0c7
Compare
71ae0c7 to
4155591
Compare
Fixes #1532 This adds handling of nested generic diamond call inference; see the new tests. The tricky part is to avoid stack overflows in one place, we have to track calls in progress in the new `nestedNullabilityRepairInProgress` set. To handle cases like `arrayAsList` we had to also add some bug fixes and call the newly-extracted `getInvokedMethodTypeAtCall` instead of `getInferenceExecutableType`. (Follow-up #1709 has a method rename and further improved documentation.) Sorry for not splitting this out more cleanly. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved nullability analysis for nested generic method calls and diamond-operator constructor expressions. * Correctly handles receiver types, inferred or explicit type arguments, and supported call-site models. * Prevented recursive analysis issues that could cause stack overflows. * Improved handling of nullable arrays and type-variable parameters in generic calls. * **Tests** * Added coverage for nested generic inference, generic method calls, diamond constructors, and nullable `Arrays.asList` scenarios. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
4155591 to
2275f34
Compare
Just cleanup and clarifications, no behavior changes
Summary by CodeRabbit