diff options
author | Ranjit Mathew <rmathew@hotmail.com> | 2004-12-08 02:18:32 +0000 |
---|---|---|
committer | Ranjit Mathew <rmathew@gcc.gnu.org> | 2004-12-08 02:18:32 +0000 |
commit | 7fd64ba3723e2217309315b2399ae13b247574df (patch) | |
tree | 70edc01d01cfba63121488c538b3516ef99cf85b /libjava | |
parent | 58b42e19f7b39f55069798d8b4b834ba680fc22d (diff) | |
download | gcc-7fd64ba3723e2217309315b2399ae13b247574df.zip gcc-7fd64ba3723e2217309315b2399ae13b247574df.tar.gz gcc-7fd64ba3723e2217309315b2399ae13b247574df.tar.bz2 |
IdentityHashMap.java (put): Replace mistaken use of "<<" by "*".
* java/util/IdentityHashMap.java (put): Replace mistaken use of
"<<" by "*".
From-SVN: r91852
Diffstat (limited to 'libjava')
-rw-r--r-- | libjava/ChangeLog | 5 | ||||
-rw-r--r-- | libjava/java/util/IdentityHashMap.java | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index be871a2..f91dd13 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -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: diff --git a/libjava/java/util/IdentityHashMap.java b/libjava/java/util/IdentityHashMap.java index 5d15786..5b2e996 100644 --- a/libjava/java/util/IdentityHashMap.java +++ b/libjava/java/util/IdentityHashMap.java @@ -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; |