mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
getUserData should be before getUserDataString
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
class Foo {
|
||||
|
||||
{
|
||||
Object o = getUD<caret>
|
||||
}
|
||||
|
||||
final String getUserDataString() {}
|
||||
final <T> T getUserData(T t) {}
|
||||
}
|
||||
+4
@@ -203,6 +203,10 @@ public class SmartTypeCompletionOrderingTest extends CompletionSortingTestCase {
|
||||
checkPreferredItems(0, "Goo", "InnerGoo", "Bar", "AGoo");
|
||||
}
|
||||
|
||||
public void testPrefixOutweighsGenericity() throws Throwable {
|
||||
checkPreferredItems(0, "getUserData", "getUserDataString");
|
||||
}
|
||||
|
||||
public void testLocalVariablesOutweighStats() throws Throwable {
|
||||
final LookupImpl lookup = invokeCompletion(BASE_PATH + "/" + getTestName(false) + ".java");
|
||||
assertPreferredItems(0, "foo", "param", "this", "bar", "goo");
|
||||
|
||||
@@ -802,13 +802,13 @@
|
||||
order="after expectedType, before stats"/>
|
||||
|
||||
<weigher key="completion" implementationClass="com.intellij.codeInsight.completion.PreferNonGenericWeigher" id="nonGeneric"
|
||||
order="after stats"/>
|
||||
order="after prefix"/>
|
||||
<weigher key="completion" implementationClass="com.intellij.codeInsight.completion.PreferAccessibleWeigher" id="accessible"
|
||||
order="after nonGeneric"/>
|
||||
<weigher key="completion" implementationClass="com.intellij.codeInsight.completion.PreferSimpleWeigher" id="simple"
|
||||
order="after accessible"/>
|
||||
<weigher key="completion" implementationClass="com.intellij.codeInsight.completion.PreferEnumConstantsWeigher" id="constants"
|
||||
order="after simple, before prefix"/>
|
||||
order="after simple, before proximity"/>
|
||||
<weigher key="completion" implementationClass="com.intellij.codeInsight.completion.SameWordsWeigher" id="sameWords"
|
||||
order="after proximity"/>
|
||||
<weigher key="completion" implementationClass="com.intellij.codeInsight.completion.PreferFieldsAndGettersWeigher" id="fieldsAndGetters"
|
||||
|
||||
Reference in New Issue
Block a user