diff --git a/src/com/esotericsoftware/kryo/util/IdentityObjectIntMap.java b/src/com/esotericsoftware/kryo/util/IdentityObjectIntMap.java index 7c0bc1cb6..d16197bce 100644 --- a/src/com/esotericsoftware/kryo/util/IdentityObjectIntMap.java +++ b/src/com/esotericsoftware/kryo/util/IdentityObjectIntMap.java @@ -35,12 +35,12 @@ * @author Nathan Sweet * @author Tommy Ettinger */ public class IdentityObjectIntMap extends ObjectIntMap { - /** Creates a new map with an initial capacity of 51 and a load factor of 0.8. */ + /** Creates a new map with an initial capacity of 51 and a load factor of 0.75. */ public IdentityObjectIntMap () { super(); } - /** Creates a new map with a load factor of 0.8. + /** Creates a new map with a load factor of 0.75. * @param initialCapacity If not a power of two, it is increased to the next nearest power of two. */ public IdentityObjectIntMap (int initialCapacity) { super(initialCapacity); diff --git a/src/com/esotericsoftware/kryo/util/IntMap.java b/src/com/esotericsoftware/kryo/util/IntMap.java index cb1249bfb..ee089a0e0 100644 --- a/src/com/esotericsoftware/kryo/util/IntMap.java +++ b/src/com/esotericsoftware/kryo/util/IntMap.java @@ -70,16 +70,16 @@ public class IntMap implements Iterable> { * hash. */ protected int mask; - /** Creates a new map with an initial capacity of 51 and a load factor of 0.8. */ + /** Creates a new map with an initial capacity of 51 and a load factor of 0.75. */ public IntMap () { - this(51, 0.8f); + this(51, 0.75f); } - /** Creates a new map with a load factor of 0.8. + /** Creates a new map with a load factor of 0.75. * * @param initialCapacity If not a power of two, it is increased to the next nearest power of two. */ public IntMap (int initialCapacity) { - this(initialCapacity, 0.8f); + this(initialCapacity, 0.75f); } /** Creates a new map with the specified initial capacity and load factor. This map will hold initialCapacity items before diff --git a/src/com/esotericsoftware/kryo/util/ObjectIntMap.java b/src/com/esotericsoftware/kryo/util/ObjectIntMap.java index 9303421e3..ddc8a9088 100644 --- a/src/com/esotericsoftware/kryo/util/ObjectIntMap.java +++ b/src/com/esotericsoftware/kryo/util/ObjectIntMap.java @@ -69,15 +69,15 @@ public class ObjectIntMap implements Iterable> { * hash. */ protected int mask; - /** Creates a new map with an initial capacity of 51 and a load factor of 0.8. */ + /** Creates a new map with an initial capacity of 51 and a load factor of 0.75. */ public ObjectIntMap () { - this(51, 0.8f); + this(51, 0.75f); } - /** Creates a new map with a load factor of 0.8. + /** Creates a new map with a load factor of 0.75. * @param initialCapacity If not a power of two, it is increased to the next nearest power of two. */ public ObjectIntMap (int initialCapacity) { - this(initialCapacity, 0.8f); + this(initialCapacity, 0.75f); } /** Creates a new map with the specified initial capacity and load factor. This map will hold initialCapacity items before diff --git a/src/com/esotericsoftware/kryo/util/ObjectMap.java b/src/com/esotericsoftware/kryo/util/ObjectMap.java index 916e6f25f..31e19e396 100644 --- a/src/com/esotericsoftware/kryo/util/ObjectMap.java +++ b/src/com/esotericsoftware/kryo/util/ObjectMap.java @@ -66,15 +66,15 @@ public class ObjectMap implements Iterable> { * hash. */ protected int mask; - /** Creates a new map with an initial capacity of 51 and a load factor of 0.8. */ + /** Creates a new map with an initial capacity of 51 and a load factor of 0.75. */ public ObjectMap () { - this(51, 0.8f); + this(51, 0.75f); } - /** Creates a new map with a load factor of 0.8. + /** Creates a new map with a load factor of 0.75. * @param initialCapacity If not a power of two, it is increased to the next nearest power of two. */ public ObjectMap (int initialCapacity) { - this(initialCapacity, 0.8f); + this(initialCapacity, 0.75f); } /** Creates a new map with the specified initial capacity and load factor. This map will hold initialCapacity items before