Small renaming
This commit is contained in:

committed by
Juan Martín Sotuyo Dodero

parent
6a3cb82b83
commit
2a078e8c48
@@ -80,7 +80,7 @@ public class VfUnescapeElRule extends AbstractVfRule {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (hasPlaceholders && isUnescaped) {
|
if (hasPlaceholders && isUnescaped) {
|
||||||
if (hasAnyEL(node)) {
|
if (hasELInInnerElements(node)) {
|
||||||
addViolation(data, node);
|
addViolation(data, node);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -136,11 +136,11 @@ public class VfUnescapeElRule extends AbstractVfRule {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean hasAnyEL(final ASTElement node) {
|
private boolean hasELInInnerElements(final ASTElement node) {
|
||||||
final ASTContent content = node.getFirstChildOfType(ASTContent.class);
|
final ASTContent content = node.getFirstChildOfType(ASTContent.class);
|
||||||
if (content != null) {
|
if (content != null) {
|
||||||
List<ASTElement> innerElements = content.findChildrenOfType(ASTElement.class);
|
final List<ASTElement> innerElements = content.findChildrenOfType(ASTElement.class);
|
||||||
for (ASTElement element : innerElements) {
|
for (final ASTElement element : innerElements) {
|
||||||
if (element.getName().equalsIgnoreCase(APEX_PARAM)) {
|
if (element.getName().equalsIgnoreCase(APEX_PARAM)) {
|
||||||
final List<ASTAttribute> innerAttributes = element.findChildrenOfType(ASTAttribute.class);
|
final List<ASTAttribute> innerAttributes = element.findChildrenOfType(ASTAttribute.class);
|
||||||
for (ASTAttribute attrib : innerAttributes) {
|
for (ASTAttribute attrib : innerAttributes) {
|
||||||
|
Reference in New Issue
Block a user