don't check expensive type annotations in org.intellij.plugins.intelliLang.util.PsiUtilEx.isString (IDEA-155740)

This commit is contained in:
peter
2016-05-09 18:11:00 +02:00
parent 10b3500d3e
commit 0bec46d9f3
@@ -91,7 +91,7 @@ public class PsiUtilEx {
final String shortName = ((PsiClassType)type).getClassName();
if (!Comparing.equal(shortName, CommonClassNames.JAVA_LANG_STRING_SHORT)) return false;
}
return CommonClassNames.JAVA_LANG_STRING.equals(type.getCanonicalText());
return CommonClassNames.JAVA_LANG_STRING.equals(type.getCanonicalText(false));
}
public static boolean isStringOrStringArray(@NotNull PsiType type) {