Skip to content

Rename getExecutableTypeForInference and improve Javadoc - #1709

Merged
msridhar merged 1 commit into
masterfrom
rename-getInferenceExecutableType
Aug 20, 2026
Merged

msridhar merged 1 commit into
masterfrom
rename-getInferenceExecutableType

Conversation

@msridhar

@msridhar msridhar commented Aug 15, 2026 •

Copy link
Copy Markdown
Collaborator

Just cleanup and clarifications, no behavior changes

Summary by CodeRabbit

  • Refactor
    • Improved internal naming and documentation for generic type inference.
    • No user-visible behavior changes.

@coderabbitai

coderabbitai Bot commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 2adc6a9d-f99f-47da-8afe-f6485a61a236

📥 Commits

Reviewing files that changed from the base of the PR and between deab96d and 71ae0c7.

📒 Files selected for processing (1)
  • nullaway/src/main/java/com/uber/nullaway/generics/GenericsChecks.java

Included review availability: Your plan provides up to 8 included reviews per hour; 3 remain after this review.


Walkthrough

The private getInferenceExecutableType helper in GenericsChecks was renamed to getExecutableTypeForInference. Call sites in type inference, inference caching, and constraint generation were updated. The helper documentation and a Javadoc reference were revised. Runtime behavior remains unchanged.

Suggested reviewers: lazaroclapp, dbwiddis

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
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.
Title check ✅ Passed The title accurately identifies the helper rename and Javadoc clarification described in the pull request.
✨ 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 rename-getInferenceExecutableType

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.

@codecov

codecov Bot commented Aug 15, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.79%. Comparing base (5cbc09f) to head (2275f34).

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

@msridhar
msridhar force-pushed the rename-getInferenceExecutableType branch from 424bb81 to deab96d Compare August 15, 2026 22:55
@msridhar
msridhar force-pushed the rename-getInferenceExecutableType branch from deab96d to 71ae0c7 Compare August 20, 2026 01:55
@seemantasaha
seemantasaha self-requested a review August 20, 2026 15:51
@msridhar
msridhar force-pushed the rename-getInferenceExecutableType branch from 71ae0c7 to 4155591 Compare August 20, 2026 17:13
msridhar added a commit that referenced this pull request Aug 20, 2026
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 -->
Base automatically changed from issue-1532 to master August 20, 2026 17:41
@msridhar
msridhar force-pushed the rename-getInferenceExecutableType branch from 4155591 to 2275f34 Compare August 20, 2026 17:42
@msridhar
msridhar merged commit d008a79 into master Aug 20, 2026
10 of 14 checks passed
@msridhar
msridhar deleted the rename-getInferenceExecutableType branch August 20, 2026 17:55
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