summaryrefslogtreecommitdiff
path: root/libjava/classpath/java/util/Hashtable.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/classpath/java/util/Hashtable.java')
-rw-r--r--libjava/classpath/java/util/Hashtable.java52
1 files changed, 26 insertions, 26 deletions
diff --git a/libjava/classpath/java/util/Hashtable.java b/libjava/classpath/java/util/Hashtable.java
index 0851de8249a..8f08e96ab8d 100644
--- a/libjava/classpath/java/util/Hashtable.java
+++ b/libjava/classpath/java/util/Hashtable.java
@@ -345,7 +345,7 @@ public class Hashtable<K, V> extends Dictionary<K, V>
}
}
- return false;
+ return false;
}
/**
@@ -362,7 +362,7 @@ public class Hashtable<K, V> extends Dictionary<K, V>
*/
public boolean containsValue(Object value)
{
- // Delegate to older method to make sure code overriding it continues
+ // Delegate to older method to make sure code overriding it continues
// to work.
return contains(value);
}
@@ -511,12 +511,12 @@ public class Hashtable<K, V> extends Dictionary<K, V>
final Iterator<Map.Entry<K,V>> it = addMap.entrySet().iterator();
while (it.hasNext())
{
- final Map.Entry<K,V> e = it.next();
+ final Map.Entry<K,V> e = it.next();
// Optimize in case the Entry is one of our own.
if (e instanceof AbstractMap.SimpleEntry)
{
AbstractMap.SimpleEntry<? extends K, ? extends V> entry
- = (AbstractMap.SimpleEntry<? extends K, ? extends V>) e;
+ = (AbstractMap.SimpleEntry<? extends K, ? extends V>) e;
put(entry.key, entry.value);
}
else
@@ -850,8 +850,8 @@ public class Hashtable<K, V> extends Dictionary<K, V>
}
/**
- * A simplified, more efficient internal implementation of putAll(). clone()
- * should not call putAll or put, in order to be compatible with the JDK
+ * A simplified, more efficient internal implementation of putAll(). clone()
+ * should not call putAll or put, in order to be compatible with the JDK
* implementation with respect to subclasses.
*
* @param m the map to initialize this from
@@ -863,13 +863,13 @@ public class Hashtable<K, V> extends Dictionary<K, V>
size = 0;
while (it.hasNext())
{
- final Map.Entry<K,V> e = it.next();
+ final Map.Entry<K,V> e = it.next();
size++;
- K key = e.getKey();
- int idx = hash(key);
- HashEntry<K, V> he = new HashEntry<K, V>(key, e.getValue());
- he.next = buckets[idx];
- buckets[idx] = he;
+ K key = e.getKey();
+ int idx = hash(key);
+ HashEntry<K, V> he = new HashEntry<K, V>(key, e.getValue());
+ he.next = buckets[idx];
+ buckets[idx] = he;
}
}
@@ -991,7 +991,7 @@ public class Hashtable<K, V> extends Dictionary<K, V>
* @author Jon Zeppieri
* @author Fridjof Siebert
*/
- private class EntryIterator
+ private class EntryIterator
implements Iterator<Entry<K,V>>
{
/**
@@ -1044,10 +1044,10 @@ public class Hashtable<K, V> extends Dictionary<K, V>
HashEntry<K, V> e = next;
while (e == null)
- if (idx <= 0)
- return null;
- else
- e = buckets[--idx];
+ if (idx <= 0)
+ return null;
+ else
+ e = buckets[--idx];
next = e.next;
last = e;
@@ -1081,7 +1081,7 @@ public class Hashtable<K, V> extends Dictionary<K, V>
* @author Fridtjof Siebert
* @author Andrew John Hughes (gnu_andrew@member.fsf.org)
*/
- private class KeyIterator
+ private class KeyIterator
implements Iterator<K>
{
@@ -1097,7 +1097,7 @@ public class Hashtable<K, V> extends Dictionary<K, V>
*/
KeyIterator()
{
- iterator = new EntryIterator();
+ iterator = new EntryIterator();
}
@@ -1109,7 +1109,7 @@ public class Hashtable<K, V> extends Dictionary<K, V>
*/
public boolean hasNext()
{
- return iterator.hasNext();
+ return iterator.hasNext();
}
/**
@@ -1137,7 +1137,7 @@ public class Hashtable<K, V> extends Dictionary<K, V>
iterator.remove();
}
} // class KeyIterator
-
+
/**
* A class which implements the Iterator interface and is used for
* iterating over values in Hashtables. This class uses an
@@ -1162,7 +1162,7 @@ public class Hashtable<K, V> extends Dictionary<K, V>
*/
ValueIterator()
{
- iterator = new EntryIterator();
+ iterator = new EntryIterator();
}
@@ -1174,7 +1174,7 @@ public class Hashtable<K, V> extends Dictionary<K, V>
*/
public boolean hasNext()
{
- return iterator.hasNext();
+ return iterator.hasNext();
}
/**
@@ -1218,7 +1218,7 @@ public class Hashtable<K, V> extends Dictionary<K, V>
* @author Jon Zeppieri
* @author Fridjof Siebert
*/
- private class EntryEnumerator
+ private class EntryEnumerator
implements Enumeration<Entry<K,V>>
{
/** The number of elements remaining to be returned by next(). */
@@ -1315,7 +1315,7 @@ public class Hashtable<K, V> extends Dictionary<K, V>
*/
public boolean hasMoreElements()
{
- return enumerator.hasMoreElements();
+ return enumerator.hasMoreElements();
}
/**
@@ -1376,7 +1376,7 @@ public class Hashtable<K, V> extends Dictionary<K, V>
*/
public boolean hasMoreElements()
{
- return enumerator.hasMoreElements();
+ return enumerator.hasMoreElements();
}
/**