Indent fix to address build failure
This commit is contained in:
1 parent
33ab74c8d2
commit
c3047700f4
1 file changed
+14
-10
+14
-10
@@ -1,3 +1,7 @@
|
||||
/**
|
||||
* BSD-style license; for more info see http://pmd.sourceforge.net/license.html
|
||||
*/
|
||||
|
||||
package net.sourceforge.pmd.lang.java.rule.codestyle;
|
||||
|
||||
import net.sourceforge.pmd.lang.java.ast.ASTLocalVariableDeclaration;
|
||||
@@ -5,16 +9,16 @@ import net.sourceforge.pmd.lang.java.rule.AbstractJavaRule;
|
||||
|
||||
public class ArrayInitializationVerbosenessRule extends AbstractJavaRule {
|
||||
|
||||
@Override
|
||||
public Object visit(ASTLocalVariableDeclaration node, Object data) {
|
||||
@Override
|
||||
public Object visit(ASTLocalVariableDeclaration node, Object data) {
|
||||
|
||||
if (node.isArray()) {
|
||||
if (node.getImage().matches("(new).+\\{")) {
|
||||
addViolation(data, node);
|
||||
}
|
||||
return super.visit(node, data);
|
||||
if (node.isArray()) {
|
||||
if (node.getImage().matches("(new).+\\{")) {
|
||||
addViolation(data, node);
|
||||
}
|
||||
return super.visit(node, data);
|
||||
}
|
||||
|
||||
return super.visit(node, data);
|
||||
}
|
||||
|
||||
return super.visit(node, data);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user