* java/util/HashSet.java (clone): Remove try/catch.
From-SVN: r39707
This commit is contained in:
parent
2e22d9b885
commit
a6845c56c4
2 changed files with 5 additions and 10 deletions
|
@ -9,6 +9,8 @@
|
||||||
* gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
|
* gnu/awt/j2d/IntegerGraphicsState.java (setClip): Call
|
||||||
Rectangle.clone(), not Object.clone().
|
Rectangle.clone(), not Object.clone().
|
||||||
|
|
||||||
|
* java/util/HashSet.java (clone): Remove try/catch.
|
||||||
|
|
||||||
2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
|
2001-02-14 Bryce McKinlay <bryce@albatross.co.nz>
|
||||||
|
|
||||||
* java/util/TreeMap.java: New file.
|
* java/util/TreeMap.java: New file.
|
||||||
|
|
|
@ -45,8 +45,8 @@ import java.io.ObjectOutputStream;
|
||||||
* HashSet is a part of the JDK1.2 Collections API.
|
* HashSet is a part of the JDK1.2 Collections API.
|
||||||
*
|
*
|
||||||
* @author Jon Zeppieri
|
* @author Jon Zeppieri
|
||||||
* @version $Revision: 1.1 $
|
* @version $Revision: 1.2 $
|
||||||
* @modified $Id: HashSet.java,v 1.1 2000/12/11 03:47:47 bryce Exp $
|
* @modified $Id: HashSet.java,v 1.2 2001/02/14 04:44:21 bryce Exp $
|
||||||
*/
|
*/
|
||||||
public class HashSet extends AbstractSet
|
public class HashSet extends AbstractSet
|
||||||
implements Set, Cloneable, Serializable
|
implements Set, Cloneable, Serializable
|
||||||
|
@ -129,14 +129,7 @@ public class HashSet extends AbstractSet
|
||||||
public Object clone()
|
public Object clone()
|
||||||
{
|
{
|
||||||
HashSet copy = new HashSet();
|
HashSet copy = new HashSet();
|
||||||
try
|
copy.map = (HashMap) map.clone();
|
||||||
{
|
|
||||||
copy.map = (HashMap) map.clone();
|
|
||||||
}
|
|
||||||
catch (CloneNotSupportedException ex)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
return copy;
|
return copy;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue