mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 15:41:26 +07:00
java smart completion sorting: split getter kind into 3 kinds with different priority (getter should have a higher priority then any relevant method chain)
This commit is contained in:
+26
@@ -0,0 +1,26 @@
|
||||
class EditorFactory {
|
||||
|
||||
static EditorFactory getInstance() {
|
||||
return null;
|
||||
}
|
||||
|
||||
Editor getEditor() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
class Editor {
|
||||
}
|
||||
|
||||
class Main {
|
||||
|
||||
|
||||
void stats() {
|
||||
Editor e = <caret>
|
||||
}
|
||||
|
||||
Editor getEditor() {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
class EditorFactory {
|
||||
|
||||
static EditorFactory getInstance() {
|
||||
return null;
|
||||
}
|
||||
|
||||
Editor getEditor() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
class Editor {
|
||||
}
|
||||
|
||||
class Main {
|
||||
|
||||
|
||||
void stats() {
|
||||
EditorFactory.getInstance().getEditor();
|
||||
EditorFactory.getInstance().getEditor();
|
||||
EditorFactory.getInstance().getEditor();
|
||||
EditorFactory.getInstance().getEditor();
|
||||
EditorFactory.getInstance().getEditor();
|
||||
EditorFactory.getInstance().getEditor();
|
||||
EditorFactory.getInstance().getEditor();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user