IdentityHashMap.java (put): Replace mistaken use of "<<" by "*".

* java/util/IdentityHashMap.java (put): Replace mistaken use of
	"<<" by "*".

From-SVN: r91852
This commit is contained in:
Ranjit Mathew 2004-12-08 02:18:32 +00:00 committed by Ranjit Mathew
parent 58b42e19f7
commit 7fd64ba372
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-12-08 Ranjit Mathew <rmathew@hotmail.com>
* java/util/IdentityHashMap.java (put): Replace mistaken use
of "<<" by "*".
2004-12-06 Tom Tromey <tromey@redhat.com>
For PR java/14853:

View File

@ -492,7 +492,7 @@ public class IdentityHashMap extends AbstractMap
Object[] old = table;
// This isn't necessarily prime, but it is an odd number of key/value
// slots, which has a higher probability of fewer collisions.
table = new Object[old.length << 1 + 2];
table = new Object[(old.length * 2) + 2];
Arrays.fill(table, emptyslot);
size = 0;
threshold = (table.length >>> 3) * 3;