Skip to content

Suggest castToNonNull fix for unboxing error#1182

Merged
msridhar merged 1 commit intomasterfrom
suggest-cast-for-unboxing-error
Mar 27, 2025
Merged

Suggest castToNonNull fix for unboxing error#1182
msridhar merged 1 commit intomasterfrom
suggest-cast-for-unboxing-error

Conversation

@msridhar
Copy link
Copy Markdown
Collaborator

@msridhar msridhar commented Mar 27, 2025

It is true that if such an inserted cast ever fails, the program will fail immediately after with an NPE (in the case that the cast method doesn't fail fast). Still, it's worthwhile to support this, to enable narrower automated suppressions of these warnings.

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.21%. Comparing base (f1aca1b) to head (ca13558).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #1182   +/-   ##
=========================================
  Coverage     88.21%   88.21%           
  Complexity     2312     2312           
=========================================
  Files            88       88           
  Lines          7550     7550           
  Branches       1511     1511           
=========================================
  Hits           6660     6660           
  Misses          446      446           
  Partials        444      444           

☔ 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 merged commit 9369704 into master Mar 27, 2025
11 of 12 checks passed
@msridhar msridhar deleted the suggest-cast-for-unboxing-error branch March 27, 2025 20:56
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