🌐 AI搜索 & 代理 主页
Skip to content

Conversation

@msridhar
Copy link
Collaborator

@msridhar msridhar commented Jun 27, 2025

We extract the logic from #1131 to also handle returns of calls to generic methods or passing a generic method call result as a parameter. If the parameter or return type being assigned to is @Nullable, and the generic method's return type is a type variable, don't infer anything, as the type argument could be either @Nullable or @NonNull.

Also includes a small logic cleanup for handling of varargs in GenericsChecks.

@msridhar msridhar marked this pull request as ready for review June 27, 2025 12:33
@msridhar msridhar requested review from akshayutture and yuxincs June 27, 2025 12:33
@codecov
Copy link

codecov bot commented Jun 27, 2025

Codecov Report

Attention: Patch coverage is 94.91525% with 3 lines in your changes missing coverage. Please review.

Project coverage is 88.36%. Comparing base (a6273b0) to head (56cb329).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
...ava/com/uber/nullaway/generics/GenericsChecks.java 94.33% 0 Missing and 3 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1226      +/-   ##
============================================
+ Coverage     88.32%   88.36%   +0.03%     
- Complexity     2358     2366       +8     
============================================
  Files            89       89              
  Lines          7669     7693      +24     
  Branches       1535     1540       +5     
============================================
+ Hits           6774     6798      +24     
  Misses          450      450              
  Partials        445      445              

☔ View full report in Codecov by Sentry.
📢 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 marked this pull request as draft June 27, 2025 12:45
@msridhar msridhar marked this pull request as ready for review June 28, 2025 04:24
@msridhar msridhar merged commit 20dd152 into master Jun 30, 2025
12 checks passed
@msridhar msridhar deleted the generic-method-inference-param-return branch June 30, 2025 01:20
haewiful pushed a commit to haewiful/NullAway01 that referenced this pull request Aug 9, 2025
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.

3 participants