mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-22 00:19:11 +07:00
GitOrigin-RevId: e836468e05db28157713e9edd3c70382f8ecdebc
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;
|
|
}
|
|
}
|
|
} |