summaryrefslogtreecommitdiff
path: root/java/util/WeakHashMap.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/util/WeakHashMap.java')
-rw-r--r--java/util/WeakHashMap.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/java/util/WeakHashMap.java b/java/util/WeakHashMap.java
index 1f4602915..3e4d34796 100644
--- a/java/util/WeakHashMap.java
+++ b/java/util/WeakHashMap.java
@@ -86,7 +86,7 @@ import java.lang.ref.WeakReference;
* @since 1.2
* @status updated to 1.4 (partial 1.5)
*/
-public class WeakHashMap<K,V> extends AbstractMap<K,V>
+public class WeakHashMap<K,V> extends AbstractMap<K,V>
{
// WARNING: WeakHashMap is a CORE class in the bootstrap cycle. See the
// comments in vm/reference/java/lang/Runtime for implications of this fact.
@@ -704,12 +704,12 @@ public class WeakHashMap<K,V> extends AbstractMap<K,V>
while (next != bucket)
{
if (next == null) throw new InternalError("WeakHashMap in incosistent state");
- prev = next;
+ prev = next;
next = prev.next;
}
if (prev == null)
buckets[slot] = bucket.next;
- else
+ else
prev.next = bucket.next;
size--;