This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-collections.git
The following commit(s) were added to refs/heads/master by this push: new 954d222aa Use Java style array decelerations (#362) 954d222aa is described below commit 954d222aa675130d006e3968ec76ea4ea15af09f Author: Arturo Bernal <arturobern...@gmail.com> AuthorDate: Sat Nov 26 21:32:07 2022 +0100 Use Java style array decelerations (#362) --- .../apache/commons/collections4/iterators/ObjectArrayIterator.java | 4 ++-- .../java/org/apache/commons/collections4/map/AbstractHashedMap.java | 4 ++-- src/main/java/org/apache/commons/collections4/set/ListOrderedSet.java | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/apache/commons/collections4/iterators/ObjectArrayIterator.java b/src/main/java/org/apache/commons/collections4/iterators/ObjectArrayIterator.java index 6fa55a42d..25433eb29 100644 --- a/src/main/java/org/apache/commons/collections4/iterators/ObjectArrayIterator.java +++ b/src/main/java/org/apache/commons/collections4/iterators/ObjectArrayIterator.java @@ -63,7 +63,7 @@ public class ObjectArrayIterator<E> implements ResettableIterator<E> { * @throws NullPointerException if {@code array} is {@code null} * @throws IndexOutOfBoundsException if the start index is out of bounds */ - public ObjectArrayIterator(final E array[], final int start) { + public ObjectArrayIterator(final E[] array, final int start) { this(array, start, array.length); } @@ -78,7 +78,7 @@ public class ObjectArrayIterator<E> implements ResettableIterator<E> { * @throws IllegalArgumentException if end index is before the start * @throws NullPointerException if {@code array} is {@code null} */ - public ObjectArrayIterator(final E array[], final int start, final int end) { + public ObjectArrayIterator(final E[] array, final int start, final int end) { if (start < 0) { throw new ArrayIndexOutOfBoundsException("Start index must not be less than zero"); } diff --git a/src/main/java/org/apache/commons/collections4/map/AbstractHashedMap.java b/src/main/java/org/apache/commons/collections4/map/AbstractHashedMap.java index ab0b0f65f..8508180e2 100644 --- a/src/main/java/org/apache/commons/collections4/map/AbstractHashedMap.java +++ b/src/main/java/org/apache/commons/collections4/map/AbstractHashedMap.java @@ -621,8 +621,8 @@ public class AbstractHashedMap<K, V> extends AbstractMap<K, V> implements Iterab threshold = calculateThreshold(newCapacity, loadFactor); data = new HashEntry[newCapacity]; } else { - final HashEntry<K, V> oldEntries[] = data; - final HashEntry<K, V> newEntries[] = new HashEntry[newCapacity]; + final HashEntry<K, V>[] oldEntries = data; + final HashEntry<K, V>[] newEntries = new HashEntry[newCapacity]; modCount++; for (int i = oldCapacity - 1; i >= 0; i--) { diff --git a/src/main/java/org/apache/commons/collections4/set/ListOrderedSet.java b/src/main/java/org/apache/commons/collections4/set/ListOrderedSet.java index 2e5b17a68..a44566d48 100644 --- a/src/main/java/org/apache/commons/collections4/set/ListOrderedSet.java +++ b/src/main/java/org/apache/commons/collections4/set/ListOrderedSet.java @@ -262,7 +262,7 @@ public class ListOrderedSet<E> } @Override - public <T> T[] toArray(final T a[]) { + public <T> T[] toArray(final T[] a) { return setOrder.toArray(a); }