Update UnusedPrivateMethodRule.java
Add break
This commit is contained in:
@ -105,6 +105,7 @@ public class UnusedPrivateMethodRule extends AbstractIgnoredAnnotationRule {
|
||||
ASTMethodDeclaration enclosingMethod = occNode.getFirstParentOfType(ASTMethodDeclaration.class);
|
||||
if (enclosingMethod == null || !mnd.getNode().getParent().equals(enclosingMethod)) {
|
||||
callsFromOutsideMethod++;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return callsFromOutsideMethod == 0;
|
||||
|
Reference in New Issue
Block a user