diff options
Diffstat (limited to 'libjava/java/util/TreeSet.java')
-rw-r--r-- | libjava/java/util/TreeSet.java | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/libjava/java/util/TreeSet.java b/libjava/java/util/TreeSet.java index 36224aa..070ca26 100644 --- a/libjava/java/util/TreeSet.java +++ b/libjava/java/util/TreeSet.java @@ -44,8 +44,8 @@ import java.io.ObjectOutputStream; * TreeSet is a part of the JDK1.2 Collections API. * * @author Jon Zeppieri - * @version $Revision: 1.7 $ - * @modified $Id: TreeSet.java,v 1.7 2000/10/26 10:19:01 bryce Exp $ + * @version $Revision: 1.1 $ + * @modified $Id: TreeSet.java,v 1.1 2001/02/14 04:44:21 bryce Exp $ */ public class TreeSet extends AbstractSet @@ -158,14 +158,7 @@ public class TreeSet extends AbstractSet public Object clone() { TreeSet copy = new TreeSet(); - try - { - copy.map = (TreeMap) map.clone(); - } - catch (CloneNotSupportedException ex) - { - } - + copy.map = (SortedMap) ((TreeMap) map).clone(); return copy; } |