diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 69812d682..72f438696 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -39,6 +39,7 @@ Fix PMD UnnecessaryFullyQualifiedName in DefaultEquator. Fix PMD UnnecessaryFullyQualifiedName in AbstractHashedMap. Fix PMD UnnecessaryFullyQualifiedName in StringKeyAnalyzer. + Fix PMD UnnecessaryFullyQualifiedName in IndexUtils. Bump org.apache.commons:commons-parent from 67 to 69 #473. Bump tests commons-io:commons-io from 2.16.0 to 2.16.1 #475. diff --git a/src/main/java/org/apache/commons/collections4/bloomfilter/IndexUtils.java b/src/main/java/org/apache/commons/collections4/bloomfilter/IndexUtils.java index 3c835ea57..10537e91b 100644 --- a/src/main/java/org/apache/commons/collections4/bloomfilter/IndexUtils.java +++ b/src/main/java/org/apache/commons/collections4/bloomfilter/IndexUtils.java @@ -37,7 +37,7 @@ final class IndexUtils { */ static int[] ensureCapacityForAdd(final int[] array, final int index) { if (index >= array.length) { - return Arrays.copyOf(array, (int) Math.min(IndexUtils.MAX_ARRAY_SIZE, Math.max(array.length * 2L, index + 1))); + return Arrays.copyOf(array, (int) Math.min(MAX_ARRAY_SIZE, Math.max(array.length * 2L, index + 1))); } return array; }