mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup MethodCallUtils.isSimpleCallToMethod (IDEA-CR-46123)
This commit is contained in:
+1
-1
@@ -109,10 +109,10 @@ public class MethodCallUtils {
|
||||
|
||||
public static boolean isSimpleCallToMethod(@NotNull PsiMethodCallExpression expression, @NonNls @Nullable String calledOnClassName,
|
||||
@Nullable PsiType returnType, @NonNls @Nullable String methodName, @NonNls @Nullable String... parameterTypeStrings) {
|
||||
if (!checkMethodName(expression, methodName)) return false;
|
||||
if (parameterTypeStrings == null) {
|
||||
return isCallToMethod(expression, calledOnClassName, returnType, methodName, (PsiType[])null);
|
||||
}
|
||||
if (!checkMethodName(expression, methodName)) return false;
|
||||
final JavaPsiFacade psiFacade = JavaPsiFacade.getInstance(expression.getProject());
|
||||
final PsiElementFactory factory = psiFacade.getElementFactory();
|
||||
final PsiType[] parameterTypes = PsiType.createArray(parameterTypeStrings.length);
|
||||
|
||||
Reference in New Issue
Block a user