back to getReturnType()

This commit is contained in:
Dmitry Avdeev
2012-09-28 11:34:59 +04:00
parent ecba878d27
commit 4d79c61a90
@@ -60,7 +60,7 @@ public class PropertyUtil {
&& (methodNameLength == "get".length() + 1 || Character.isLowerCase(methodName.charAt("get".length() + 1)))) {
return false;
}
PsiType returnType = method.getReturnTypeNoResolve();
PsiType returnType = method.getReturnType();
if (returnType != null && PsiType.VOID.equals(returnType)) return false;
}
else if (methodName.startsWith("is") && methodNameLength > "is".length()) {
@@ -68,7 +68,7 @@ public class PropertyUtil {
&& (methodNameLength == "is".length() + 1 || Character.isLowerCase(methodName.charAt("is".length() + 1)))) {
return false;
}
PsiType returnType = method.getReturnTypeNoResolve();
PsiType returnType = method.getReturnType();
return isBoolean(returnType);
}
else {
@@ -93,7 +93,7 @@ public class PropertyUtil {
return false;
}
final PsiType returnType = method.getReturnTypeNoResolve();
final PsiType returnType = method.getReturnType();
if (returnType == null || PsiType.VOID.equals(returnType)) {
return true;