mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
simplified isJava10Call
This commit is contained in:
+1
-3
@@ -1,7 +1,6 @@
|
||||
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package com.intellij.psi.impl.source.resolve.graphInference;
|
||||
|
||||
import com.intellij.pom.java.LanguageLevel;
|
||||
import com.intellij.psi.*;
|
||||
import com.intellij.psi.infos.MethodCandidateInfo;
|
||||
import com.intellij.psi.util.PsiUtil;
|
||||
@@ -13,7 +12,6 @@ import java.util.Arrays;
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
import java.util.function.Function;
|
||||
import java.util.function.Supplier;
|
||||
|
||||
public class PsiPolyExpressionUtil {
|
||||
public static boolean hasStandaloneForm(PsiExpression expression) {
|
||||
@@ -137,7 +135,7 @@ public class PsiPolyExpressionUtil {
|
||||
}
|
||||
|
||||
private static boolean isVarContext(PsiVariable variable) {
|
||||
if (PsiUtil.getLanguageLevel(variable).isAtLeast(LanguageLevel.JDK_10)) {
|
||||
if (PsiUtil.isLanguageLevel10OrHigher(variable)) {
|
||||
PsiTypeElement typeElement = variable.getTypeElement();
|
||||
if (typeElement != null && typeElement.isInferredType()) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user