Commit 87eb61d2 authored by Nico Mack's avatar Nico Mack

reduced overhead of duplicate method

parent b61b34ca
......@@ -105,9 +105,7 @@ public class VectorVariable<B> extends Variable<List<B>> implements List<B> {
}
public boolean duplicate(VectorVariable<B> target) {
List<B> copied = new ArrayList<>();
copied.addAll(target.getValue());
this.setValue(copied);
this.setValue(target.getValue());
return true;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment