Skip to content

Commit

Permalink
Style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeygorbaty committed Mar 3, 2017
1 parent d12c1f7 commit 309d2d1
Showing 1 changed file with 5 additions and 5 deletions.
Expand Up @@ -97,7 +97,7 @@ private boolean isUnbalanced(String image, String pattern) {
if (index < 0) {
index = image.indexOf(":");
}

index = image.indexOf(pattern, index + 1);
while (index >= 0) {
occurance++;
Expand Down Expand Up @@ -146,8 +146,8 @@ private void checkLimitedFlags(ASTElement node, Object data) {
final ASTText attrText = attr.getFirstDescendantOfType(ASTText.class);
if (attrText != null) {
if (0 == attrText.jjtGetChildIndex()) {
if (attrText.getImage().startsWith("/")
|| attrText.getImage().toLowerCase().startsWith("http") || attrText.getImage().toLowerCase().startsWith("mailto")) {
if (attrText.getImage().startsWith("/") || attrText.getImage().toLowerCase().startsWith("http")
|| attrText.getImage().toLowerCase().startsWith("mailto")) {
startingWithSlashText = true;
}
}
Expand Down Expand Up @@ -386,15 +386,15 @@ private boolean containsSafeFields(final AbstractVFNode expression) {
case "id":
case "size":
case "caseNumber":
return true;
return true;
default:
}
}

if (child instanceof ASTDotExpression) {
if (containsSafeFields((ASTDotExpression) child)) {
return true;
};
}
}

}
Expand Down

0 comments on commit 309d2d1

Please sign in to comment.