aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/util/HashSet.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/java/util/HashSet.java')
-rw-r--r--libjava/java/util/HashSet.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/libjava/java/util/HashSet.java b/libjava/java/util/HashSet.java
index f7cb326..1d1f106 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.5 $
- * @modified $Id: HashSet.java,v 1.5 2000/10/26 10:19:00 bryce Exp $
+ * @version $Revision: 1.1 $
+ * @modified $Id: HashSet.java,v 1.1 2000/12/11 03:47:47 bryce Exp $
*/
public class HashSet extends AbstractSet
implements Set, Cloneable, Serializable
@@ -128,10 +128,9 @@ public class HashSet extends AbstractSet
*/
public Object clone()
{
- HashSet copy = null;
+ HashSet copy = new HashSet();
try
{
- copy = (HashSet) super.clone();
copy.map = (HashMap) map.clone();
}
catch (CloneNotSupportedException ex)