diff options
Diffstat (limited to 'libjava/java/util')
-rw-r--r-- | libjava/java/util/Arrays.java | 6 | ||||
-rw-r--r-- | libjava/java/util/WeakHashMap.java | 11 |
2 files changed, 12 insertions, 5 deletions
diff --git a/libjava/java/util/Arrays.java b/libjava/java/util/Arrays.java index 1285501..13f9be0 100644 --- a/libjava/java/util/Arrays.java +++ b/libjava/java/util/Arrays.java @@ -1,5 +1,5 @@ /* Arrays.java -- Utility class with methods to operate on arrays - Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc. + Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -2430,7 +2430,7 @@ public class Arrays { int size = a.length; for (int i = 0; i < size; i++) - if (equals(o, a[i])) + if (this.equals(o, a[i])) return i; return -1; } @@ -2439,7 +2439,7 @@ public class Arrays { int i = a.length; while (--i >= 0) - if (equals(o, a[i])) + if (this.equals(o, a[i])) return i; return -1; } diff --git a/libjava/java/util/WeakHashMap.java b/libjava/java/util/WeakHashMap.java index d86ec26..8c55ae0 100644 --- a/libjava/java/util/WeakHashMap.java +++ b/libjava/java/util/WeakHashMap.java @@ -1,6 +1,6 @@ /* java.util.WeakHashMap -- a hashtable that keeps only weak references to its keys, allowing the virtual machine to reclaim them - Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. + Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -170,6 +170,13 @@ public class WeakHashMap extends AbstractMap implements Map private final class WeakEntrySet extends AbstractSet { /** + * Non-private constructor to reduce bytecode emitted. + */ + WeakEntrySet() + { + } + + /** * Returns the size of this set. * * @return the set size @@ -483,7 +490,7 @@ public class WeakHashMap extends AbstractMap implements Map */ WeakEntry getEntry() { - final Object key = get(); + final Object key = this.get(); if (key == null) return null; return new WeakEntry(key); |