From e84800b34cc0c241802c9d6a4aa0381b739edf54 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Thu, 30 Nov 2017 22:54:07 +0100 Subject: [PATCH] Update ruleset factory compatibility --- .../java/net/sourceforge/pmd/RuleSetFactoryCompatibility.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pmd-core/src/main/java/net/sourceforge/pmd/RuleSetFactoryCompatibility.java b/pmd-core/src/main/java/net/sourceforge/pmd/RuleSetFactoryCompatibility.java index f732f86a82..0dee6a59fc 100644 --- a/pmd-core/src/main/java/net/sourceforge/pmd/RuleSetFactoryCompatibility.java +++ b/pmd-core/src/main/java/net/sourceforge/pmd/RuleSetFactoryCompatibility.java @@ -78,6 +78,10 @@ public class RuleSetFactoryCompatibility { addFilterRuleRenamed("java", "naming", "MisleadingVariableName", "MIsLeadingVariableName"); addFilterRuleRenamed("java", "unnecessary", "UnnecessaryFinalModifier", "UnnecessaryModifier"); addFilterRuleRenamed("java", "empty", "EmptyStaticInitializer", "EmptyInitializer"); + // GuardLogStatementJavaUtil moved and renamed... + addFilterRuleMoved("java", "logging-java", "logging-jakarta-commons", "GuardLogStatementJavaUtil"); + addFilterRuleRenamed("java", "logging-jakarta-commons", "GuardLogStatementJavaUtil", "GuardLogStatement"); + addFilterRuleRenamed("java", "logging-jakarta-commons", "GuardDebugLogging", "GuardLogStatement"); } void addFilterRuleRenamed(String language, String ruleset, String oldName, String newName) {