Enable PMD rule UnnecessaryBoxing and fix violations

This commit is contained in:
Manuel Fuhr 2024-04-03 14:50:05 +02:00
parent dd896347a2
commit c73a8cebb8
6 changed files with 30 additions and 34 deletions

View file

@ -419,7 +419,7 @@ public final class MicroCache2 extends MicroCache {
nlinks++;
if (isInternal) {
int nodeIdx = idx.intValue();
int nodeIdx = idx;
if (dodebug) System.out.println("*** target nodeIdx=" + nodeIdx);
if (nodeIdx == n) throw new RuntimeException("ups: self ref?");
nodeIdxDiff.encodeSignedValue(nodeIdx - n);