json schema: don't modify the original collection

This commit is contained in:
Anton Lobov
2019-02-20 11:16:25 +01:00
parent 18cfc4cd7c
commit 783faded4b
@@ -280,7 +280,7 @@ public class JsonSchemaObject {
if (other.myNot != null) myNot = other.myNot;
if (other.myIfThenElse != null) {
if (myIfThenElse == null) myIfThenElse = other.myIfThenElse;
else myIfThenElse.addAll(other.myIfThenElse);
else myIfThenElse = ContainerUtil.concat(myIfThenElse, other.myIfThenElse);
}
myShouldValidateAgainstJSType |= other.myShouldValidateAgainstJSType;
}