-
Notifications
You must be signed in to change notification settings - Fork 45
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
FII_USE_METHOD_REFERENCE false positive #388
Comments
I suspect it was complaining about the |
Ahh I see. If this is intentional im fine with closing the bug. |
Seems like the problem is the compiler is generating two lambda methods for this one mapToObject invocation. The first private static java.lang.Boolean lambda$20(int); and the second private static boolean lambda$21(java.lang.Boolean); The second lambda is clearly the same as Boolean::valueOf and that is what is being reported. However you didn't write two lambdas the compiler did. Have it figure out how to address this. |
…ences, as javac does wonky things with autoboxing for #388
thanks for the report, should be fixed. |
The following code triggres an FII_USE_METHOD_REFERENCE warning
I have rewritten the code to the more concise
which works. But the warning still seems like a false positive.
The text was updated successfully, but these errors were encountered: