From 0e52b1542e41b89d41f37e6eef4134b7f065100d Mon Sep 17 00:00:00 2001 From: Sergey Date: Wed, 22 Feb 2017 11:50:19 -0800 Subject: [PATCH] Style check fixes --- .../pmd/lang/vf/rule/security/VfUnescapeElRule.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/rule/security/VfUnescapeElRule.java b/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/rule/security/VfUnescapeElRule.java index 52a00a005d..b75fde1ecb 100644 --- a/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/rule/security/VfUnescapeElRule.java +++ b/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/rule/security/VfUnescapeElRule.java @@ -60,7 +60,7 @@ public class VfUnescapeElRule extends AbstractVfRule { } } - if (name.equalsIgnoreCase("href") || name.equalsIgnoreCase("src")) { + if ("href".equalsIgnoreCase(name) || "src".equalsIgnoreCase(name)) { final List elsInVal = attr.findDescendantsOfType(ASTElExpression.class); for (ASTElExpression el : elsInVal) { if (doesElContainAnyUnescapedIdentifiers(el, ESCAPING.URLENCODE)) { @@ -217,7 +217,7 @@ public class VfUnescapeElRule extends AbstractVfRule { private final String text; - private ESCAPING(final String text) { + ESCAPING(final String text) { this.text = text; }