From 4d79c61a90e81d30e791f44ec51e76b03cd5d1c6 Mon Sep 17 00:00:00 2001 From: Dmitry Avdeev Date: Fri, 28 Sep 2012 11:33:41 +0400 Subject: [PATCH] back to getReturnType() --- .../src/com/intellij/psi/util/PropertyUtil.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/java/java-psi-api/src/com/intellij/psi/util/PropertyUtil.java b/java/java-psi-api/src/com/intellij/psi/util/PropertyUtil.java index 88c24d481dc3..c95ddfe13de9 100644 --- a/java/java-psi-api/src/com/intellij/psi/util/PropertyUtil.java +++ b/java/java-psi-api/src/com/intellij/psi/util/PropertyUtil.java @@ -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;