Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/unrollLoop/beforeUnrollArrayDfa.java
Tagir Valeev c180e2cec5 IDEA-243019 Unroll loop: get loop size from dataflow
GitOrigin-RevId: 0ba4a16c098414fcb539502446b6cd138922f398
2020-06-10 06:27:06 +03:00

12 lines
214 B
Java

// "Unroll loop" "true"
import java.util.Arrays;
class X {
void test() {
int[] array = new int[10];
Arrays.setAll(array, i -> i);
<caret>for (int i : array) {
System.out.println(i);
}
}
}