diff options
| author | J08nY | 2025-02-27 19:10:40 +0100 |
|---|---|---|
| committer | J08nY | 2025-02-27 19:10:40 +0100 |
| commit | a3883795d1261a9679e829355bd584ee1ca6e1ec (patch) | |
| tree | 309df1eb45da952bd4d4760272259531509f5778 /common/src | |
| parent | 51f118610d4d6b383b7b7b75201998b47ea5f972 (diff) | |
| download | ECTester-a3883795d1261a9679e829355bd584ee1ca6e1ec.tar.gz ECTester-a3883795d1261a9679e829355bd584ee1ca6e1ec.tar.zst ECTester-a3883795d1261a9679e829355bd584ee1ca6e1ec.zip | |
Diffstat (limited to 'common/src')
| -rw-r--r-- | common/src/main/java/cz/crcs/ectester/common/test/CompoundTest.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/common/src/main/java/cz/crcs/ectester/common/test/CompoundTest.java b/common/src/main/java/cz/crcs/ectester/common/test/CompoundTest.java index 0e97255..b59f528 100644 --- a/common/src/main/java/cz/crcs/ectester/common/test/CompoundTest.java +++ b/common/src/main/java/cz/crcs/ectester/common/test/CompoundTest.java @@ -225,6 +225,11 @@ public class CompoundTest extends Test implements Cloneable { @Override public CompoundTest clone() throws CloneNotSupportedException { - return (CompoundTest) super.clone(); + CompoundTest clone = (CompoundTest) super.clone(); + clone.tests = new Test[tests.length]; + for (int i = 0; i < tests.length; i++) { + clone.tests[i] = tests[i].clone(); + } + return clone; } } |
