CollapseIntoLoopAction: use tracking equivalence checker

GitOrigin-RevId: e8194d0ed5c4603eacbb0d904232f79f6373e56a
This commit is contained in:
Tagir Valeev
2020-06-17 10:29:38 +07:00
committed by intellij-monorepo-bot
parent fb8cffea13
commit 7470db33d8
3 changed files with 24 additions and 5 deletions

View File

@@ -0,0 +1,9 @@
// "Collapse into loop" "true"
class X {
public int hashCode() {
for (int j = 0; j < 4; j++) {
System.out.println(1);
for (int i = 0; i < 10; i++) {}
}
}
}

View File

@@ -0,0 +1,13 @@
// "Collapse into loop" "true"
class X {
public int hashCode() {
<caret>System.out.println(1);
for (int i = 0; i < 10; i++) {}
System.out.println(1);
for (int i = 0; i < 10; i++) {}
System.out.println(1);
for (int i = 0; i < 10; i++) {}
System.out.println(1);
for (int i = 0; i < 10; i++) {}
}
}