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

Infer generics for assignments #1131

Draft
wants to merge 25 commits into
base: master
Choose a base branch
from
Draft

Conversation

haewiful
Copy link
Contributor

  • Infer Nullability for assignments of instances with type parameters. ex) Foo<@Nullable Object> f = Foo.make(null);

  • void genericInferenceOnAssignments() in GenericMethodTests.java

@msridhar
Copy link
Collaborator

@haewiful thanks for this! It looks like CI fails on the :nullaway:buildWithNullAway task:

https://github.com/uber/NullAway/actions/runs/12978381939/job/36192901792?pr=1131#step:5:606

I suggest looking at the code it is crashing on and trying to write a unit test that causes the same failure, which will make it easier to debug.

# Conflicts:
#	nullaway/src/main/java/com/uber/nullaway/NullAway.java
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