mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
back to getReturnType()
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user