mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 16:36:56 +07:00
13 lines
328 B
Java
13 lines
328 B
Java
// "Replace loop with 'Arrays.fill()' method call" "true"
|
|
import java.util.Arrays;
|
|
import java.util.List;
|
|
|
|
public class Test {
|
|
|
|
public static<T> void fill(T[] data, T value) {
|
|
for(int <caret>idx = 0; (/*comment*/data).length > idx; idx+=1) {
|
|
/*in body*/
|
|
data[/*in lvalue*/idx] = /*in rvalue*/value;
|
|
}
|
|
}
|
|
} |