diff options
Diffstat (limited to 'libjava/java/util/WeakHashMap.java')
-rw-r--r-- | libjava/java/util/WeakHashMap.java | 11 |
1 files changed, 9 insertions, 2 deletions
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); |