CheckStyle Updated

This commit is contained in:
Akshat Bahety
2018-04-23 10:04:32 +05:30
committed by GitHub
parent bee7adb33a
commit c137ebaa60

View File

@@ -34,11 +34,11 @@ public class SingleMethodSingletonRule extends AbstractJavaRule {
int count = 0;
for (ASTMethodDeclaration method : methods) {
if (method.getName().equals("getInstance")) {
count++;
if(count > 1){
addViolation(data, node);
if (count > 1) {
addViolation(data, node);
break;
}
}