mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
GuessManagerImpl: do not run DFA if all assignments/initializations have the same r-value type
Fixes IDEA-185290 Too long time takes filling of Ctrl+Space list. (fast code insertion)
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
class Foo {
|
||||
void test(boolean b) {
|
||||
List<String> list = new ArrayList<>();
|
||||
if (b) {
|
||||
list = Collections.emptyList();
|
||||
}
|
||||
System.out.println(list.trimTo<caret>);
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
class Foo {
|
||||
void test(boolean b) {
|
||||
List<String> list = new ArrayList<>();
|
||||
if (b) {
|
||||
list = Collections.emptyList();
|
||||
}
|
||||
System.out.println(list.trimTo);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user