Browse Source

added cloning support; bug #27218

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276160 13f79535-47bb-0310-9956-ffa450edef68
master
Steve Loughran 21 years ago
parent
commit
feb03ce2d8
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/main/org/apache/tools/ant/types/Assertions.java

+ 2
- 2
src/main/org/apache/tools/ant/types/Assertions.java View File

@@ -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;


Loading…
Cancel
Save