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

This commit is contained in:
Anna Kozlova
2016-03-15 18:34:43 +01:00
parent abe9e7f10d
commit 0c583feae6
4 changed files with 45 additions and 5 deletions

View File

@@ -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();
}
}

View File

@@ -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();
}
}