We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
LinkedHashSet<E>
In Spring Framework codebase with JSpecify mode enabled, when specifying
Set<@Nullable String> result = CollectionUtils.newLinkedHashSet(patterns.length);
I get
error: [NullAway] Cannot assign from type LinkedHashSet<String> to type Set<@Nullable String> due to mismatched nullability of type parameters
If I try
Set<@Nullable String> result = CollectionUtils.<@Nullable String>newLinkedHashSet(patterns.length);
error: [NullAway] Type argument cannot be @Nullable, as method <E>newLinkedHashSet(int)'s type variable E is not @Nullable
LinkedHashSet Javadoc specifies "it permits null elements" so I think this is a bug.
LinkedHashSet
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In Spring Framework codebase with JSpecify mode enabled, when specifying
I get
If I try
I get
LinkedHashSet
Javadoc specifies "it permits null elements" so I think this is a bug.The text was updated successfully, but these errors were encountered: