From d274a73d5a218cf23a7329e37087fcc87182f8b8 Mon Sep 17 00:00:00 2001
From: Dimitris Mandalidis <dimitris.mandalidis@gmail.com>
Date: Sat, 27 Apr 2024 14:48:27 +0300
Subject: [PATCH] PMD 7.x adaptations

---
 pmd-build.xml | 15 ---------------
 pom.xml       |  2 +-
 2 files changed, 1 insertion(+), 16 deletions(-)

diff --git a/pmd-build.xml b/pmd-build.xml
index ee736eca..d1c8169e 100644
--- a/pmd-build.xml
+++ b/pmd-build.xml
@@ -12,11 +12,8 @@
 	<rule ref="category/java/bestpractices.xml/MissingOverride" />
 	<rule ref="category/java/bestpractices.xml/SystemPrintln" />
 	<rule ref="category/java/bestpractices.xml/UseCollectionIsEmpty" />
-	<rule ref="category/java/bestpractices.xml/UnusedImports" />
 
 	<!-- Code style -->
-	<rule ref="category/java/codestyle.xml/DontImportJavaLang" />
-	<rule ref="category/java/codestyle.xml/DuplicateImports" />
 	<rule ref="category/java/codestyle.xml/ExtendsObject" />
 	<rule ref="category/java/codestyle.xml/ControlStatementBraces" />
 	<rule ref="category/java/codestyle.xml/UnnecessaryLocalBeforeReturn" />
@@ -31,11 +28,6 @@
 	<rule ref="category/java/errorprone.xml/DontImportSun" />
 	<rule ref="category/java/errorprone.xml/EmptyCatchBlock" />
 	<rule ref="category/java/errorprone.xml/EmptyFinalizer" />
-	<rule ref="category/java/errorprone.xml/EmptyFinallyBlock" />
-	<rule ref="category/java/errorprone.xml/EmptyIfStmt" />
-	<rule ref="category/java/errorprone.xml/EmptyInitializer" />
-	<rule ref="category/java/errorprone.xml/EmptyStatementBlock" />
-	<rule ref="category/java/errorprone.xml/EmptyStatementNotInLoop" />
 	<rule ref="category/java/errorprone.xml/UnconditionalIfStatement" />
 	<rule ref="category/java/errorprone.xml/UseEqualsToCompareStrings" />
 	<rule ref="category/java/errorprone.xml/UnnecessaryCaseChange" />
@@ -44,15 +36,8 @@
 	<rule ref="category/java/performance.xml/AddEmptyString" />
 	<rule ref="category/java/performance.xml/AppendCharacterWithChar" />
 	<rule ref="category/java/performance.xml/AvoidFileStream" />
-	<rule ref="category/java/performance.xml/AvoidUsingShortType" />
-	<rule ref="category/java/performance.xml/BooleanInstantiation" />
-	<rule ref="category/java/performance.xml/ByteInstantiation" />
 	<rule ref="category/java/performance.xml/ConsecutiveAppendsShouldReuse" />
 	<rule ref="category/java/performance.xml/InefficientStringBuffering" />
-	<rule ref="category/java/performance.xml/IntegerInstantiation" />
-	<rule ref="category/java/performance.xml/LongInstantiation" />
-	<rule ref="category/java/performance.xml/ShortInstantiation" />
-	<rule ref="category/java/performance.xml/SimplifyStartsWith" />
 	<rule ref="category/java/performance.xml/StringInstantiation" />
 	<rule ref="category/java/performance.xml/StringToString" />
 	<rule ref="category/java/performance.xml/UseArraysAsList" />
diff --git a/pom.xml b/pom.xml
index f000af79..003f337b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -84,7 +84,7 @@
 		<version.plugin.gpg>3.2.4</version.plugin.gpg>
 		<version.plugin.surefire>3.2.5</version.plugin.surefire>
 		<version.plugin.bundle>5.1.9</version.plugin.bundle>
-		<version.plugin.pmd>3.21.2</version.plugin.pmd>
+		<version.plugin.pmd>3.22.0</version.plugin.pmd>
 	</properties>
 
 	<dependencyManagement>