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 01190c61e Javadoc typos 01190c61e is described below commit 01190c61ea101709bdad43d5af37cb9bd4359754 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Fri May 19 08:43:51 2023 -0400 Javadoc typos --- .../java/org/apache/commons/collections4/bidimap/TreeBidiMap.java | 6 +++--- .../java/org/apache/commons/collections4/keyvalue/MultiKey.java | 4 ++-- .../org/apache/commons/collections4/map/AbstractReferenceMap.java | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/org/apache/commons/collections4/bidimap/TreeBidiMap.java b/src/main/java/org/apache/commons/collections4/bidimap/TreeBidiMap.java index e44cf468e..b9f47cf3a 100644 --- a/src/main/java/org/apache/commons/collections4/bidimap/TreeBidiMap.java +++ b/src/main/java/org/apache/commons/collections4/bidimap/TreeBidiMap.java @@ -1868,7 +1868,7 @@ public class TreeBidiMap<K extends Comparable<K>, V extends Comparable<V>> private final Node<K, V>[] rightNode; private final Node<K, V>[] parentNode; private final boolean[] blackColor; - private int hashcodeValue; + private int hashCodeValue; private boolean calculatedHashCode; /** @@ -2073,10 +2073,10 @@ public class TreeBidiMap<K extends Comparable<K>, V extends Comparable<V>> @Override public int hashCode() { if (!calculatedHashCode) { - hashcodeValue = getKey().hashCode() ^ getValue().hashCode(); + hashCodeValue = getKey().hashCode() ^ getValue().hashCode(); calculatedHashCode = true; } - return hashcodeValue; + return hashCodeValue; } } diff --git a/src/main/java/org/apache/commons/collections4/keyvalue/MultiKey.java b/src/main/java/org/apache/commons/collections4/keyvalue/MultiKey.java index b25cd8923..2c39bf5c4 100644 --- a/src/main/java/org/apache/commons/collections4/keyvalue/MultiKey.java +++ b/src/main/java/org/apache/commons/collections4/keyvalue/MultiKey.java @@ -198,8 +198,8 @@ public class MultiKey<K> implements Serializable { * <b>If the array is not cloned, then it must not be modified.</b> * <p> * This method is public for performance reasons only, to avoid a clone. - * The hashcode is calculated once here in this method. - * Therefore, changing the array passed in would not change the hashcode but + * The hash code is calculated once here in this method. + * Therefore, changing the array passed in would not change the hash code but * would change the equals method, which is a bug. * <p> * This is the only fully safe usage of this constructor, as the object array diff --git a/src/main/java/org/apache/commons/collections4/map/AbstractReferenceMap.java b/src/main/java/org/apache/commons/collections4/map/AbstractReferenceMap.java index db4cc818f..711e3bd04 100644 --- a/src/main/java/org/apache/commons/collections4/map/AbstractReferenceMap.java +++ b/src/main/java/org/apache/commons/collections4/map/AbstractReferenceMap.java @@ -684,11 +684,11 @@ public abstract class AbstractReferenceMap<K, V> extends AbstractHashedMap<K, V> } /** - * Gets the hashcode of the entry using temporary hard references. + * Gets the hash code of the entry using temporary hard references. * <p> * This implementation uses {@code hashEntry} on the main map. * - * @return the hashcode of the entry + * @return the hash code of the entry */ @Override public int hashCode() {