From b0b74ff6103e2c4e5ea8cf7b260c3e4003996516 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Mart=C3=ADn=20Sotuyo=20Dodero?= Date: Mon, 15 Oct 2018 05:32:03 -0300 Subject: [PATCH] Fix the rulechain usage - Thanks to https://github.com/pmd/build-tools/pull/10 --- .../pmd/lang/java/rule/security/HardCodedCryptoKeyRule.java | 2 +- .../pmd/lang/java/rule/security/InsecureCryptoIvRule.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {