for (String v : globVals)
{
v = makeSubstitutions(v);
- SubVals vsv = new SubVals(globSubVals == null ? null
- : globSubVals.getSubValsMap(), v);
+ SubVals vsv = new SubVals(globSubVals, v);
avs.addValue(vsv, v, argIndex++);
argIndexIncremented = true;
}
private String content = null;
- public SubVals(Map<String, String> sv, String c)
+ public SubVals(SubVals sv, String c)
{
- this.subVals = sv;
+ if (sv != null)
+ {
+ this.subVals = sv.getSubValsMap();
+ this.index = sv.getIndex();
+ }
this.content = c;
}