Diff of /jakarta/commons/proper/collections/trunk/src/java/org/apache/commons/collections/map/AbstractHashedMap.java
Parent Directory
| Revision Log
| Patch
--- jakarta/commons/proper/collections/trunk/src/java/org/apache/commons/collections/map/AbstractHashedMap.java 2005/05/07 17:26:58 169101
+++ jakarta/commons/proper/collections/trunk/src/java/org/apache/commons/collections/map/AbstractHashedMap.java 2005/05/07 18:04:32 169102
@@ -1204,13 +1204,13 @@ public class AbstractHashedMap extends A
int capacity = in.readInt();
int size = in.readInt();
init();
+ threshold = calculateThreshold(capacity, loadFactor);
data = new HashEntry[capacity];
for (int i = 0; i < size; i++) {
Object key = in.readObject();
Object value = in.readObject();
put(key, value);
}
- threshold = calculateThreshold(data.length, loadFactor);
}
//-----------------------------------------------------------------------