-
Notifications
You must be signed in to change notification settings - Fork 301
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
JSpecify: preserve explicit nullability annotations on type variables when performing substitutions #1143
Merged
Merged
JSpecify: preserve explicit nullability annotations on type variables when performing substitutions #1143
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
e032c32
test case
msridhar d2253e6
comment
msridhar cf4d30f
WIP
msridhar 1435767
Merge branch 'master' into refactor-subst-and-member-type
msridhar 31ba88a
tweak
msridhar 7bde4cd
add castToNonNull
msridhar 2a38c99
Merge branch 'refactor-subst-and-member-type' into issue-1091
msridhar 05661a1
undo change
msridhar 95074fc
re-add test
msridhar b1fe3f7
WIP
msridhar b276290
Merge branch 'master' into issue-1091
msridhar 3195606
Merge branch 'master' into issue-1091
msridhar 4054514
WIP
msridhar 6c3f5bd
more tests pass
msridhar b8fc022
more tests
msridhar 66e8fef
arrays
msridhar 4ef41ed
remove comment
msridhar 739aee2
Make TypeMetadataBuilder top level
msridhar 204dc8b
static import
msridhar 3855e6e
test and fix
msridhar e42617e
some fixes
msridhar 2074cff
fix
msridhar fcd7c5b
more
msridhar 5def17c
wildcard test
msridhar 884415c
fix
msridhar e3e2992
another test
msridhar ead803f
more
msridhar 9cae201
comment
msridhar f380945
fix test
msridhar 9350d76
fix
msridhar c6ae842
handle arrays
msridhar d876f8f
fix array type printing in jspecify errors
msridhar 57746ad
Merge branch 'fix-jspecify-array-error-msg-2025-02-09' into issue-1091
msridhar c069272
fix test
msridhar 909e972
comments
msridhar 9674e64
Merge branch 'master' into issue-1091
msridhar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the passing around of the config variable everywhere required for this bug fix? I don't see it being used anywhere.
Or is it an unrelated change which has been combined with this PR? If so, can we clarify this in the PR description?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
Config
object is required for this bug fix. It is stored in an instance field ofRestoreNullnessAnnotationsVisitor
and used to check whether an annotation should be treated as@Nullable
or@NonNull
here:https://github.com/uber/NullAway/pull/1143/files#diff-a6bb8226bed276672e56b162bca51775aa7ad9c2d3fc69c787bc96e36ce33507R137-R138