Use initial capacity of 4 for empty macro parameter maps to allow some room

for macro-added parameters.
This commit is contained in:
hns 2003-07-30 17:16:04 +00:00
parent 08b50f7c59
commit 84e4c9361d

View file

@ -482,7 +482,7 @@ public final class Skin {
// pass a clone/copy of the parameter map so if the script changes it,
Object[] arguments = new Object[1];
if (parameters == null) {
arguments[0] = new SystemMap(0);
arguments[0] = new SystemMap(4);
} else {
arguments[0] = new WrappedMap(parameters, WrappedMap.COPY_ON_WRITE);
// arguments[0] = new SystemMap(parameters);