Skip to content

JSpecify: handle varargs whose element type is a type variable#1200

Merged
msridhar merged 14 commits intomasterfrom
issue-1199
Apr 18, 2025
Merged

JSpecify: handle varargs whose element type is a type variable#1200
msridhar merged 14 commits intomasterfrom
issue-1199

Conversation

@msridhar
Copy link
Copy Markdown
Collaborator

@msridhar msridhar commented Apr 16, 2025

Partially addresses #1199. After substituting for a type variable, we were not retrieving the correct nullability for a varargs parameter, which should be the nullability of the component, not the array type itself.

Also adds some simplification of our handling of varargs calls based on a tip from @jeffrey-easyesi

@msridhar msridhar changed the title JSpecify: handle varargs whose element type is a type variable" JSpecify: handle varargs whose element type is a type variable Apr 16, 2025
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 16, 2025

Codecov Report

Attention: Patch coverage is 96.55172% with 1 line in your changes missing coverage. Please review.

Project coverage is 88.21%. Comparing base (647e77e) to head (edcdc86).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
...ava/com/uber/nullaway/generics/GenericsChecks.java 93.33% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1200      +/-   ##
============================================
+ Coverage     88.19%   88.21%   +0.02%     
- Complexity     2310     2317       +7     
============================================
  Files            88       88              
  Lines          7564     7577      +13     
  Branches       1510     1513       +3     
============================================
+ Hits           6671     6684      +13     
  Misses          448      448              
  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 ready for review April 16, 2025 17:56
@msridhar msridhar marked this pull request as draft April 17, 2025 19:24
@msridhar msridhar marked this pull request as ready for review April 18, 2025 01:29
@msridhar msridhar enabled auto-merge (squash) April 18, 2025 16:19
@msridhar msridhar merged commit 4987a2e into master Apr 18, 2025
12 checks passed
@msridhar msridhar deleted the issue-1199 branch April 18, 2025 16:21
dhruv-agr pushed a commit to dhruv-agr/NullAway that referenced this pull request May 9, 2025
…1200)

Partially addresses uber#1199. After substituting for a type variable, we
were not retrieving the correct nullability for a varargs parameter,
which should be the nullability of the component, not the array type
itself.

Also adds some simplification of our handling of varargs calls based on
a tip from @jeffrey-easyesi
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