Files
openide/java/java-tests/testData/refactoring/introduceVariable/WhileConditionNoBrace.java
Tagir Valeev 48beacdfa3 [java-refactoring] Introduce variable: extract loop invariants (at least simple ones) outside of while loop
Fixes some of annoying cases like reported in IDEA-210010

GitOrigin-RevId: b083327807d85666d1f71f96a90d0eddd616754f
2020-12-21 10:44:43 +00:00

8 lines
152 B
Java

class Test {
int[] a = new int[10];
void foo() {
int log = 0;
while (1 << log < <selection>a.length</selection>) log++;
}
}