Files
openide/java/java-tests/testData/inspection/explicitArrayFilling/beforeFieldComments.java
2019-05-08 08:04:14 +03:00

11 lines
336 B
Java

// "Replace loop with 'Arrays.setAll()' method call" "true"
public class Test {
private Object[] data;
public void fill() {
for(int <caret>idx = 0; (this./*comment*/data).length > idx; idx+=1) {
/*in body*/
this./*in lvalue*/data[idx] = "Hello!" + /* we need index here */ idx;
}
}
}