From 7aa5200869b7a95b20812f3cac255bab348eabb2 Mon Sep 17 00:00:00 2001 From: jochen Date: Sat, 26 Jun 1999 18:26:30 +0000 Subject: [PATCH] bug fix in clone git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@918 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/util/SimpleSet.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/jode/jode/util/SimpleSet.java b/jode/jode/util/SimpleSet.java index ea09111..f43d8a8 100644 --- a/jode/jode/util/SimpleSet.java +++ b/jode/jode/util/SimpleSet.java @@ -63,11 +63,7 @@ public class SimpleSet public Object clone() { try { SimpleSet other = (SimpleSet) super.clone(); - if (count > 0) { - other.elementObjects = new Object[count]; - System.arraycopy(elementObjects, 0, - other.elementObjects, 0, count); - } + other.elementObjects = (Object[]) elementObjects.clone(); return other; } catch (CloneNotSupportedException ex) { throw new jode.AssertError("Clone?");