Fix checkstyle

This commit is contained in:
Alberto Fernandez
2018-01-12 23:31:58 +01:00
parent 4f67d99c9f
commit a4d5ff683d

View File

@ -141,12 +141,12 @@ public class PreserveStackTraceRule extends AbstractJavaRule {
List<ASTName> nameNodes = baseNode.findDescendantsOfType(ASTName.class);
for (ASTName nameNode : nameNodes) {
if (target.equals(nameNode.getImage())) {
boolean isPartOfStringConcatenation =
(nameNode.jjtGetParent().jjtGetParent().jjtGetParent() instanceof ASTAdditiveExpression);
if (!isPartOfStringConcatenation) {
match = true;
break;
}
boolean isPartOfStringConcatenation =
(nameNode.jjtGetParent().jjtGetParent().jjtGetParent() instanceof ASTAdditiveExpression);
if (!isPartOfStringConcatenation) {
match = true;
break;
}
}
}
}