diff options
author | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2005-01-12 13:13:54 +0000 |
---|---|---|
committer | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2005-01-12 13:13:54 +0000 |
commit | fc91d03f4ce2d622647fc02384b673e4185b6484 (patch) | |
tree | b6a26425cb5716f9d0e04166338965e32874cc02 /java/util | |
parent | de7522da5484c66090f3389cff181d6bb46ab2d1 (diff) | |
download | classpath-fc91d03f4ce2d622647fc02384b673e4185b6484.tar.gz |
2005-01-12 Andrew John Hughes <gnu_andrew@member.fsf.org>
* java/util/EnumMap.java
Corrected comment for accuracy.
* java/util/EnumSet.java
Corrected indenting.
* java/util/Hashtable.java
Corrected bracketing of author.
Diffstat (limited to 'java/util')
-rw-r--r-- | java/util/EnumMap.java | 2 | ||||
-rw-r--r-- | java/util/EnumSet.java | 24 | ||||
-rw-r--r-- | java/util/Hashtable.java | 2 |
3 files changed, 15 insertions, 13 deletions
diff --git a/java/util/EnumMap.java b/java/util/EnumMap.java index 43ebeb674..4a81205d1 100644 --- a/java/util/EnumMap.java +++ b/java/util/EnumMap.java @@ -385,7 +385,7 @@ public class EnumMap<K extends Enum<K>, V> public EnumMap<K, V> clone() { - /* We don't use super.clone() as enums don't support it */ + /* This constructor provides this functionality */ return new EnumMap(this); } diff --git a/java/util/EnumSet.java b/java/util/EnumSet.java index 30cfb041b..c7b6627b4 100644 --- a/java/util/EnumSet.java +++ b/java/util/EnumSet.java @@ -61,17 +61,19 @@ public class EnumSet<T extends Enum<T>> public EnumSet<T> clone() { - try - { - EnumSet<T> r = (EnumSet<T>) super.clone(); - r.store = (BitSet) store.clone(); - return r; - } - catch (CloneNotSupportedException _) - { - // Can't happen. - return null; - } + EnumSet<T> r; + + try + { + r = (EnumSet<T>) super.clone(); + } + catch (CloneNotSupportedException _) + { + /* Can't happen */ + return null; + } + r.store = (BitSet) store.clone(); + return r; } public int size() diff --git a/java/util/Hashtable.java b/java/util/Hashtable.java index 775949fc2..91f52c374 100644 --- a/java/util/Hashtable.java +++ b/java/util/Hashtable.java @@ -91,7 +91,7 @@ import java.io.Serializable; * @author Jon Zeppieri * @author Warren Levy * @author Bryce McKinlay - * @author Eric Blake <ebb9@email.byu.edu> + * @author Eric Blake (ebb9@email.byu.edu) * @see HashMap * @see TreeMap * @see IdentityHashMap |