show static import suggestion: ensure normal inference process for method candidate (IDEA-152985)

This commit is contained in:
Anna Kozlova
2016-03-15 19:09:04 +01:00
parent abe9e7f10d
commit 0c583feae6
4 changed files with 45 additions and 5 deletions
@@ -0,0 +1,10 @@
// "Static import method 'java.util.Collections.emptyList'" "true"
import java.util.List;
import static java.util.Collections.emptyList;
public class X {
List<String> get() {
return emptyList();
}
}
@@ -0,0 +1,7 @@
// "Static import method 'java.util.Collections.emptyList'" "true"
import java.util.List;
public class X {
List<String> get() {
return <caret>emptyList();
}
}
@@ -0,0 +1,24 @@
/*
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.intellij.codeInsight.daemon.quickFix;
public class StaticImportMethod8Test extends LightQuickFixParameterizedTestCase {
@Override
protected String getBasePath() {
return "/codeInsight/daemonCodeAnalyzer/quickFix/staticImportMethod8";
}
}