don't prefer getClass over HashMap.get

This commit is contained in:
peter
2012-06-03 17:01:34 +02:00
parent 6ea5d29d61
commit 8ccfb29451
4 changed files with 13 additions and 1 deletions
@@ -0,0 +1,8 @@
import java.util.HashMap;
class Util {
void foo(int reaction, boolean rezet) {
new HashMap().g<caret>x
}
}
@@ -329,5 +329,8 @@ public class NormalCompletionOrderingTest extends CompletionSortingTestCase {
checkPreferredItems 0, 'reaction', 'rezet', 'return'
}
public void testDoNotPreferGetClass() {
checkPreferredItems 0, 'get', 'getClass'
}
}
@@ -795,7 +795,7 @@ public class SmartTypeCompletionTest extends LightFixtureCompletionTestCase {
}
public void testNoClassLiteral() throws Exception {
doActionTest();
assertStringItems("Object.class", "getClass", "forName", "forName");
assertStringItems("Object.class", "forName", "forName", "getClass");
}
public void testClassLiteralInAnno2() throws Throwable {