mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
postfix template: extract .getType() -> variable
This commit is contained in:
+5
-1
@@ -136,7 +136,11 @@ public abstract class JavaPostfixTemplatesUtils {
|
||||
|
||||
@Contract("null -> false")
|
||||
public static boolean isNotPrimitiveTypeExpression(@Nullable PsiExpression expression) {
|
||||
return expression != null && expression.getType() != null && !(expression.getType() instanceof PsiPrimitiveType);
|
||||
if (expression == null) {
|
||||
return false;
|
||||
}
|
||||
PsiType type = expression.getType();
|
||||
return type != null && !(type instanceof PsiPrimitiveType);
|
||||
}
|
||||
|
||||
@Contract("null -> false")
|
||||
|
||||
Reference in New Issue
Block a user