uber / NullAway

A tool to help eliminate NullPointerExceptions (NPEs) in your Java code with low build-time overhead
MIT License
3.63k stars 293 forks source link

Handle JDK 21 case operands in type refinement #928

Closed msridhar closed 7 months ago

msridhar commented 7 months ago

Fixes #927. We also extract some common logic in AccessPathNullnessPropagation around handling equality comparisons to avoid duplication.

codecov[bot] commented 7 months ago

Codecov Report

Attention: Patch coverage is 90.00000% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 87.04%. Comparing base (e3a3c76) to head (02912d9).

Files Patch % Lines
...llaway/dataflow/AccessPathNullnessPropagation.java 90.00% 1 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #928 +/- ## ============================================ - Coverage 87.07% 87.04% -0.03% + Complexity 1994 1993 -1 ============================================ Files 77 77 Lines 6444 6440 -4 Branches 1249 1249 ============================================ - Hits 5611 5606 -5 Misses 422 422 - Partials 411 412 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.