Skip to content

Commit f6e05cf

Browse files
authored
Correctly compare non-object parameters in isConstrainedByInterface
1 parent f8e98af commit f6e05cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/mebigfatguy/fbcontrib/detect/OverlyPermissiveMethod.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ private boolean isConstrainedByInterface(FQMethod fqMethod) {
351351
for (int i = 0; i < infTypes.size(); i++) {
352352
String infParmType = infTypes.get(i);
353353
String fqParmType = fqTypes.get(i);
354-
if (infParmType.equals(fqParmType)) {
354+
if (!infParmType.equals(fqParmType)) {
355355
if (infParmType.charAt(0) != 'L' || fqParmType.charAt(0) != 'L') {
356356
matches = false;
357357
break;

0 commit comments

Comments
 (0)