IDEA-50092 Code completion added unnecessary type arguments

This commit is contained in:
peter
2011-02-23 11:33:15 +01:00
parent d07de05c10
commit 5d9f4ef818
4 changed files with 26 additions and 0 deletions
@@ -0,0 +1,9 @@
import java.util.Collections;
import java.util.List;
class A {
void foo(List<String> x){}
{
foo(Collections.<String>emptyList());<caret>
}
}
@@ -0,0 +1,9 @@
import java.util.Collections;
import java.util.List;
class A {
void foo(List<String> x){}
{
foo(Collections.<String>emptyL<caret>ist());
}
}
@@ -436,6 +436,8 @@ public class SmartTypeCompletionTest extends LightFixtureCompletionTestCase {
public void testCastAutoboxing3() throws Throwable { doActionItemTest(); }
public void testCastWildcards() throws Throwable { doTest(); }
public void testNoSecondMethodTypeArguments() throws Throwable { doTest(Lookup.REPLACE_SELECT_CHAR); }
public void testNoFieldsInSuperConstructorCall() throws Throwable { doTest(); }
public void testNoUninitializedFieldsInConstructor() throws Throwable { doTest(); }
public void testFieldsSetInAnotherConstructor() throws Throwable { doTest(); }