Javadoc typos

This commit is contained in:
Gary Gregory 2023-05-19 08:44:33 -04:00
parent 01190c61ea
commit 974e12ac42
2 changed files with 2 additions and 2 deletions

View File

@ -140,7 +140,7 @@ public class MultiKeyTest {
mk = new MultiKey<>(keys, false);
assertArrayEquals(new Object[]{THREE, FOUR, ONE, TWO}, mk.getKeys());
// change key - don't do this!
// the hashcode of the MultiKey is now broken
// the hash code of the MultiKey is now broken
keys[3] = FIVE;
assertArrayEquals(new Object[]{THREE, FOUR, ONE, FIVE}, mk.getKeys());
}

View File

@ -450,7 +450,7 @@ public class LRUMapTest<K, V> extends AbstractOrderedMapTest<K, V> {
@Override
public int hashCode() {
// always return the same hashcode
// always return the same hash code
// that way, it will end up in the same bucket
return 12;
}