// TODO: Fix for Groovy's model-checking
public String[] getGenericTypeVariableNames () {
- // To accommodate methods that do not have generic types
+ // TODO: We need to double check but for some reason Groovy has a type of generic signature with "<*>"
+ // TODO: in the class file.
if (genericSignature == null || genericSignature.equals("") || genericSignature.contains("<*>"))
return new String[0];
+ if (!genericSignature.contains(":"))
+ return new String[0];
return Types.getGenericTypeVariableNames(genericSignature);
}
}
// TODO: Fix for Groovy's model-checking
public String[] getArgumentGenericTypeNames () {
- // To accommodate methods that do not have generic types
+ // TODO: We need to double check but for some reason Groovy has a type of generic signature with "<*>"
+ // TODO: in the class file.
if (genericSignature == null || genericSignature.equals("") || genericSignature.contains("<*>"))
return getArgumentTypeNames();
+ if (!genericSignature.contains(":"))
+ return new String[0];
return Types.getArgumentTypeNames(genericSignature);
}
// TODO: in the class file.
if (genericSignature == null || genericSignature.equals("") || genericSignature.contains("<*>"))
return Types.getReturnTypeName(signature);
+ if (!genericSignature.contains(":"))
+ return Types.getReturnTypeName(signature);
return Types.getGenericReturnTypeName(genericSignature);
}