mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
don't prefer getClass over HashMap.get
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import java.util.HashMap;
|
||||
|
||||
class Util {
|
||||
void foo(int reaction, boolean rezet) {
|
||||
new HashMap().g<caret>x
|
||||
}
|
||||
|
||||
}
|
||||
+3
@@ -329,5 +329,8 @@ public class NormalCompletionOrderingTest extends CompletionSortingTestCase {
|
||||
checkPreferredItems 0, 'reaction', 'rezet', 'return'
|
||||
}
|
||||
|
||||
public void testDoNotPreferGetClass() {
|
||||
checkPreferredItems 0, 'get', 'getClass'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user