lists and maps copy by reference. use copy to get a copy.

This commit is contained in:
gnembon committed 2019-11-21 21:21:58 -04:00
1 parent 848f95cd30
commit 24c1ee8d3d
3 files changed
+10 -5

No files matched your search

@@ -72,9 +72,9 @@ public class MapValue extends AbstractListValue implements ContainerValueInterfa
return new MapValue(copyMap);
}
public MapValue(Map<Value,Value> other)
private MapValue(Map<Value,Value> other)
{
map = new HashMap<>(other);
map = other;
}
@Override