call.addArg(dispProcessExpression(args[i]));
}
if (binding.isVarargs()) {
// Handle the last arg.
JArrayType type = (JArrayType) typeMap.get(params[n]);
// See if there is only one arg and it's an array of the correct dims.
if (args.length == n + 1) {
JType lastArgType = (JType) typeMap.get(args[n].resolvedType);
if (lastArgType instanceof JArrayType) {
JArrayType lastArgArrayType = (JArrayType) lastArgType;
if (lastArgArrayType.getDims() == type.getDims()) {
// Looks like it's already an array.
call.addArg(dispProcessExpression(args[n]));
return;
}
}