You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it seems there is a bug in getReturnTypeString(boolean fullyQualified) method. When method is called first with fullyQualified = false the global returnType variable is initialized by not qualified type name and then not updated. In next call unqualified name is returned.
Here is my code to fix it:
/**
* Returns the return type of this method.
*
* @return The return type of this method.
*/
public String getReturnTypeString(boolean fullyQualified) {
String returnType0;
if (returnType==null) {
returnType0 = getReturnTypeStringFromTypeSignature(fullyQualified);
if (returnType0==null) {
returnType0 = getReturnTypeStringFromDescriptor(fullyQualified);
}
} else {
returnType0 = returnType;
}
if(!fullyQualified)
{
if(returnType0 != null && returnType0.indexOf(".") > -1) {
return returnType0.substring(returnType0.lastIndexOf(".") +1, returnType0.length());
}
} else {
returnType = returnType0;
}
return returnType;
}
The text was updated successfully, but these errors were encountered:
Hello,
it seems there is a bug in getReturnTypeString(boolean fullyQualified) method. When method is called first with fullyQualified = false the global returnType variable is initialized by not qualified type name and then not updated. In next call unqualified name is returned.
Here is my code to fix it:
The text was updated successfully, but these errors were encountered: