Community
Participate
Working Groups
{
char []name={};
for (int j = 0; j < param.types.length; j++) {
char []typeName=param.types[j].getSimpleTypeName();
//char []typeName=param.types[j].getSimpleTypeName();
//make sure we are using the type version of Boolean, even if the user entered boolean as the JSdoc type.
char []typeName=changePrimitiveToObject(param.types[j].getSimpleTypeName());
if (j==0)
name=typeName;
else
return compUnit.findInferredType(className);
}
public char[] changePrimitiveToObject(char[] name) {
//Changes the first character of the name of the primitive types to uppercase. This will allow future reference to the object wrapper instead of the primitive type.
if(CharOperation.equals(name, "boolean".toCharArray(), false)) //$NON-NLS-1$
return BooleanType.getName();
return name;