-
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
OPM_OVERLY_PERMISSIVE_METHOD False Positive on Interface Method #437
Comments
Was anyone able to look at this and confirm? |
I looked into this a little, and found that because the interface return type is fb-contrib/src/main/java/com/mebigfatguy/fbcontrib/detect/OverlyPermissiveMethod.java Lines 337 to 344 in 28c23d6
The logic then ends up in fb-contrib/src/main/java/com/mebigfatguy/fbcontrib/detect/OverlyPermissiveMethod.java Lines 349 to 358 in 28c23d6
|
targetted for 7.6.1 |
When using the
org.springframework.jdbc.core.SqlReturnType
interface I get a SpotBugs warning forOPM_OVERLY_PERMISSIVE_METHOD
for my implementation ofgetTypeValue
because I have it defined as public when the interface requires it to be. I am wondering if the detector is confused because the interface method is not explicitly denoted public, but by definition IS.Snip of the Spring class:
And my class (specifically the getTypeValue method):
Without public (or with any other modifier) I get the following warning:
The text was updated successfully, but these errors were encountered: