From: Bryce McKinlay Date: Thu, 15 Feb 2001 05:12:05 +0000 (+0000) Subject: * java/util/HashSet.java (clone): Remove try/catch. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a6845c56c4b7b6e6ca66c87530c2dcb4eebbc2c4;p=gcc.git * java/util/HashSet.java (clone): Remove try/catch. From-SVN: r39707 --- diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 1d8b086da5e..1de5ea454fe 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -9,6 +9,8 @@ * gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call Rectangle.clone(), not Object.clone(). + * java/util/HashSet.java (clone): Remove try/catch. + 2001-02-14 Bryce McKinlay * java/util/TreeMap.java: New file. diff --git a/libjava/java/util/HashSet.java b/libjava/java/util/HashSet.java index 1d1f106637e..c1a5218cf55 100644 --- a/libjava/java/util/HashSet.java +++ b/libjava/java/util/HashSet.java @@ -45,8 +45,8 @@ import java.io.ObjectOutputStream; * HashSet is a part of the JDK1.2 Collections API. * * @author Jon Zeppieri - * @version $Revision: 1.1 $ - * @modified $Id: HashSet.java,v 1.1 2000/12/11 03:47:47 bryce Exp $ + * @version $Revision: 1.2 $ + * @modified $Id: HashSet.java,v 1.2 2001/02/14 04:44:21 bryce Exp $ */ public class HashSet extends AbstractSet implements Set, Cloneable, Serializable @@ -129,14 +129,7 @@ public class HashSet extends AbstractSet public Object clone() { HashSet copy = new HashSet(); - try - { - copy.map = (HashMap) map.clone(); - } - catch (CloneNotSupportedException ex) - { - } - + copy.map = (HashMap) map.clone(); return copy; }