Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarifications and small fixes for checking JSpecify @Nullable annotation #859

Merged
merged 3 commits into from
Nov 15, 2023

Conversation

msridhar
Copy link
Collaborator

Rename a variable and add docs to clarify that in certain places, our JSpecify support specifically checks for @org.jspecify.annotations.Nullable annotations and not others. Also, fix a couple of places where we were comparing types by their String representation.

Copy link

codecov bot commented Nov 15, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (60648a9) 86.95% compared to head (c2677a1) 87.02%.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #859      +/-   ##
============================================
+ Coverage     86.95%   87.02%   +0.07%     
- Complexity     1919     1921       +2     
============================================
  Files            77       77              
  Lines          6215     6219       +4     
  Branches       1209     1209              
============================================
+ Hits           5404     5412       +8     
+ Misses          405      403       -2     
+ Partials        406      404       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@yuxincs yuxincs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refactor and fixes LGTM 👍

Thanks for the clarifications!

(BTW do we want to allow 1% of coverage differences? codecov's coverage calculation is a bit imprecise)

@msridhar
Copy link
Collaborator Author

(BTW do we want to allow 1% of coverage differences? codecov's coverage calculation is a bit imprecise)

It turns out the coverage issue was real and I added a test to cover another case. So in this case it was useful 🙂 As the codecov jobs are non-blocking for NullAway I think we can (for now) leave them as failing even with a small change

@msridhar msridhar merged commit 9092438 into uber:master Nov 15, 2023
10 checks passed
@msridhar msridhar deleted the clarify_jspecify_nullable branch November 15, 2023 02:29
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