if(method.isVarArg() && p==params[params.length-1]) {
// use varargs if applicable
if( javaType.endsWith("[]") )
javaType = javaType.substring(0,javaType.length()-2)+"...";
}
Variant defValue = p.getDefaultValue();
if(defValue!=null)
try {
o.print("@DefaultValue(\""+ defValue.stringValue()+"\")");
} catch (ComException e) {
// in rare occasions we get default values that are not printable.
// ignore such an error.
}
o.print(javaType);