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

Allow suppressing warnings toArray.nullable.elements.not.newarray and toArray.nullable.elements.mismatched.size #3908

Closed
vlsi opened this issue Nov 18, 2020 · 1 comment · Fixed by #3909

Comments

@vlsi
Copy link
Contributor

vlsi commented Nov 18, 2020

It looks like toArray.nullable.elements.... can't be suppressed.

I tried @SuppressWarnings("toArray.nullable.elements.not.newarray") at both statement, method, and even -AsuppressWarnings=toArray.nullable.elements.mismatched.size,toArray.nullable.elements.not.newarray level, however it does not suppress the warnings.

Will post the reproducers later, however, for now I suppressed the warning with "all", so suppression works, however, named suppression does not.

Is it caused by upper-case letter A in toArray?

@mernst mernst linked a pull request Nov 18, 2020 that will close this issue
@mernst
Copy link
Member

mernst commented Nov 18, 2020

Your analysis is correct. Sorry for the bug! I have opened a pull request to fix it.

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 a pull request may close this issue.

2 participants