From feb03ce2d86cb52fbe8ce55b6b74dfe2536924b1 Mon Sep 17 00:00:00 2001 From: Steve Loughran Date: Wed, 25 Feb 2004 12:57:12 +0000 Subject: [PATCH] added cloning support; bug #27218 git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276160 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/types/Assertions.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/org/apache/tools/ant/types/Assertions.java b/src/main/org/apache/tools/ant/types/Assertions.java index 24827e43d..7e23363cf 100644 --- a/src/main/org/apache/tools/ant/types/Assertions.java +++ b/src/main/org/apache/tools/ant/types/Assertions.java @@ -65,7 +65,7 @@ import java.util.Iterator; * @since Ant 1.6 * @author steve loughran */ -public class Assertions extends DataType { +public class Assertions extends DataType implements Cloneable { /** * enable/disable sys assertions; null means undefined @@ -221,7 +221,7 @@ public class Assertions extends DataType { * @return a cli * @throws CloneNotSupportedException */ - protected Object clone() throws CloneNotSupportedException { + public Object clone() throws CloneNotSupportedException { Assertions that = (Assertions) super.clone(); that.assertionList = (ArrayList) assertionList.clone(); return that;