chore: PMD 1.20.0 adaptation

Signed-off-by: Leo Galambos <lg@hq.egothor.org>
This commit is contained in:
2026-01-01 11:44:13 +01:00
parent 969a846d95
commit e01d95f48e
3 changed files with 5 additions and 5 deletions

View File

@@ -45,7 +45,7 @@ dependencies {
pmd { pmd {
consoleOutput = true consoleOutput = true
toolVersion = '7.19.0' toolVersion = '7.20.0'
sourceSets = [sourceSets.main] sourceSets = [sourceSets.main]
ruleSetFiles = files(rootProject.file(".ruleset")) ruleSetFiles = files(rootProject.file(".ruleset"))
} }

View File

@@ -103,10 +103,10 @@ public class ByteVerificationStrategy extends VerificationBiPredicate<byte[]> {
if (LOG.isLoggable(Level.FINE)) { if (LOG.isLoggable(Level.FINE)) {
if (r == 0) { if (r == 0) {
LOG.log(Level.FINE, "PASS {0} == {1}", // NOPMD LOG.log(Level.FINE, "PASS {0} == {1}",
new Object[] { Strings.toShortString(a), Strings.toShortString(b) }); new Object[] { Strings.toShortString(a), Strings.toShortString(b) });
} else { } else {
LOG.log(Level.FINE, "FAIL {0} != {1}", // NOPMD LOG.log(Level.FINE, "FAIL {0} != {1}",
new Object[] { Strings.toShortString(a), Strings.toShortString(b) }); new Object[] { Strings.toShortString(a), Strings.toShortString(b) });
} }
} }

View File

@@ -103,9 +103,9 @@ public class SignatureVerificationStrategy extends VerificationBiPredicate<Signa
if (LOG.isLoggable(Level.FINE)) { if (LOG.isLoggable(Level.FINE)) {
if (result) { if (result) {
LOG.log(Level.FINE, "PASS {0}", Strings.toShortString(b)); // NOPMD LOG.log(Level.FINE, "PASS {0}", Strings.toShortString(b));
} else { } else {
LOG.log(Level.FINE, "FAIL {0}", Strings.toShortString(b)); // NOPMD LOG.log(Level.FINE, "FAIL {0}", Strings.toShortString(b));
} }
} }