Javadoc typos

This commit is contained in:
Gary Gregory 2023-05-19 08:43:51 -04:00
parent dd10e5e0e6
commit 01190c61ea
3 changed files with 7 additions and 7 deletions

View File

@ -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;
}
}

View File

@ -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

View File

@ -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() {