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:
Tagir Valeev
2018-01-29 16:12:55 +07:00
parent 79ca4df31b
commit 97aa63f410
4 changed files with 104 additions and 72 deletions
@@ -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>);
}
}
@@ -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);
}
}