Collections.emptyList should accept the qualified prefix

This commit is contained in:
peter
2011-01-20 16:29:53 +01:00
parent ff93a1cb36
commit f0d36a8cbe
4 changed files with 30 additions and 15 deletions
@@ -0,0 +1,7 @@
import java.util.Collections;
class Foo {
java.util.List<String> foo() {
return Collections.emptyList();<caret>
}
}
@@ -0,0 +1,5 @@
class Foo {
java.util.List<String> foo() {
return Collect<caret>;
}
}
@@ -884,25 +884,17 @@ public class SmartTypeCompletionTest extends LightFixtureCompletionTestCase {
assertEquals(4, myItems.length);
}
public void testInsertTypeParametersOnImporting() throws Throwable {
doTest();
}
public void testInsertTypeParametersOnImporting() throws Throwable { doTest(); }
public void testEmptyListInReturn() throws Throwable {
doItemTest();
}
public void testEmptyListInReturn() throws Throwable { doItemTest(); }
public void testEmptyListInReturn2() throws Throwable {
doTest();
}
public void testEmptyListInReturn2() throws Throwable { doTest(); }
public void testEmptyListInReturnTernary() throws Throwable {
doItemTest();
}
public void testEmptyListInReturnTernary() throws Throwable { doItemTest(); }
public void testEmptyListBeforeSemicolon() throws Throwable {
doItemTest();
}
public void testEmptyListBeforeSemicolon() throws Throwable { doItemTest(); }
public void testEmptyListWithCollectionsPrefix() throws Throwable { doItemTest(); }
public void testStaticallyImportedMagicMethod() throws Throwable {
configureByTestName();