-
Notifications
You must be signed in to change notification settings - Fork 331
JSpecify: infer generic method type arguments for assignments #1131
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
Merged
Merged
Changes from all commits
Commits
Show all changes
93 commits
Select commit
Hold shift + click to select a range
b3eba82
fix and test
msridhar bc9e5fb
another fix and test
msridhar 174b262
add TODO
msridhar c94dc28
check explicit type arguments when comparing generic type param nulla…
haewiful 32b87ab
formatting
haewiful e1dfa8a
add test case for explicit type arguments
haewiful be9c657
Merge branch 'master' into check-type-param
haewiful 24ca5a1
apply substitution to method type
msridhar cc45e43
Merge branch 'master' into check-type-param
msridhar 3f3ebf2
make function that substitutes explicit type arguments
haewiful 7004926
test case
haewiful aaba869
add test for multiple generics
haewiful 37ef4d1
temp structure of inferred_types cache - need to change map key type
haewiful c6a6244
infer on assignments draft
haewiful 277e2b6
new test case for inference on assignments
haewiful e7346d3
update test case
haewiful bca1d7d
simple cleanup
haewiful 453623a
formatting
haewiful 9375170
Merge remote-tracking branch 'upstream/master' into infer-generics
haewiful db0b6ce
minor changes
haewiful 35b18cf
move cache into GenericsChecks and make related methods nonstatic
haewiful 0308a5b
Merge branch 'master' into infer-generics
msridhar f5ece94
formatting
msridhar f89fef0
fix CI Job failure
haewiful 0c577ae
remove unused code
haewiful 61e4f3e
debugged for testJdk23
haewiful 9f6c91b
fetch and merge
haewiful 8a30816
Merge branch 'master' into infer-generics
haewiful 4f4ca89
recreated :caffeine:compileTestJava error
haewiful d96769a
update test case
haewiful b3dda68
add scenarios to test cases
haewiful 5f1e08f
add expected errors for testcase
haewiful 1e9699a
add upper bound checks
haewiful a2489ea
update NullAway.java
haewiful ddf2440
formatting
msridhar 24241b5
remove unnecessary parameter
msridhar fbedd9c
Merge branch 'master' into infer-generics
msridhar e07c020
update test cases
haewiful e15754a
version passing all tests
haewiful d5c4e5f
change according to comments
haewiful 6c4430e
mid status
haewiful e4051cc
make code more simple
haewiful 82628ca
make pass ./gradlew :nullaway:buildWithNullAway
haewiful 430e855
Merge branch 'master' into infer-generics
haewiful f8c8d07
remove always true condition
haewiful 6bc1d0c
make method for clearing inferredTypes cache
haewiful 099fae7
Merge branch 'master' into infer-generics
msridhar 29255bb
change based on comments
haewiful 575006e
add visitor for infering types on assignments using method calls
haewiful 2ab7a31
javadoc
haewiful 61d6f95
update according to changed method definition
haewiful d984de2
Merge branch 'master' into infer-generics
haewiful f7c4a3f
add test case for return types with arrays
haewiful 461c309
add array type inference to visitor
haewiful 48bb542
clean up
haewiful 5573800
change key of inferredTypes to MethodInvokationTree
haewiful bbae811
change inferredTypes value type to Map<TypeVariable, Type>
haewiful 3c77d70
format
haewiful ea785ba
remove filter call
msridhar 2aec29b
simplify
msridhar 014fc93
add failing test
msridhar b45bbad
make it work for assignments that are not declarations
haewiful 50f73de
simplify
msridhar cd2ec93
another test
msridhar 7e7290f
use inferred types immediately after inference
haewiful 87ed351
changes based on comments
haewiful 3d6c606
wrote expected error message for the error case
haewiful b10a877
remove some comments
haewiful ad44d92
javadoc
haewiful e996302
formatting
haewiful 174606b
replace uninferred type variables
haewiful 9a910b6
Merge branch 'master' into infer-generics
msridhar 930917a
Merge branch 'master' into infer-generics
msridhar e083f41
add inferred type substitution to substituteTypeArgsInGenericMethodTy…
haewiful c36d198
add inference using parameter types and make tests pass
haewiful 3053e4d
remove extra blank line
msridhar 5a0b7aa
remove inference via parameter types
haewiful bfccfad
Pass around NullAway object to get the right GenericsChecks object in…
msridhar c2743da
whoops
msridhar b995c4d
cleanup
msridhar 2053035
more cleanup
msridhar 4b5b76c
remove unnecessary code
msridhar 2e41b53
comments, still need to be addressed
msridhar 433ac92
cleanup and simplification
msridhar bbc57c4
remove unnecessary bailout code
msridhar 2343dd7
failing test
msridhar a8c4c33
fix bug
msridhar bba61a7
move method location
msridhar e218dd0
rename test case
haewiful 1b57a94
more cleanup
msridhar 3d928a6
Trigger CLA check
msridhar 72dc550
Trigger CLA check
msridhar fe8702d
Trigger CLA check
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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
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.
Uh oh!
There was an error while loading. Please reload this page.