diff --git a/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/rule/security/HardCodedCryptoKeyRule.java b/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/rule/security/HardCodedCryptoKeyRule.java index 6fa8eabb5b..33210da0e3 100644 --- a/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/rule/security/HardCodedCryptoKeyRule.java +++ b/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/rule/security/HardCodedCryptoKeyRule.java @@ -49,7 +49,7 @@ public class HardCodedCryptoKeyRule extends AbstractJavaRule { validateProperKeyArgument(data, prefix); } } - return super.visit(node, data); + return data; } /** diff --git a/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/rule/security/InsecureCryptoIvRule.java b/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/rule/security/InsecureCryptoIvRule.java index 0a6e6e1476..c91b2f26c5 100644 --- a/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/rule/security/InsecureCryptoIvRule.java +++ b/pmd-java/src/main/java/net/sourceforge/pmd/lang/java/rule/security/InsecureCryptoIvRule.java @@ -56,7 +56,7 @@ public class InsecureCryptoIvRule extends AbstractJavaRule { validateProperIv(data, prefix); } } - return super.visit(node, data); + return data; } private void validateProperIv(Object data, ASTPrimaryPrefix firstArgumentExpression) {