added array clones

This commit is contained in:
Timo Westkämper 2010-02-22 19:18:35 +00:00
parent b4703ed9a5
commit 03e6defcfe
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ public final class PropertyModel implements Comparable<PropertyModel> {
this.name = Assert.notNull(name);
this.escapedName = escapedName;
this.type = Assert.notNull(type);
this.inits = inits;
this.inits = inits.clone();
this.inherited = inherited;
}

View File

@ -51,7 +51,7 @@ public class EConstructor<D> extends Expr<D> {
public EConstructor(Class<D> type, Class<?>[] paramTypes, Expr<?>... args) {
super(type);
this.parameterTypes = paramTypes;
this.parameterTypes = paramTypes.clone();
this.args = Collections.unmodifiableList(Arrays.asList(args));
}