mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-11 20:07:01 +07:00
15 lines
279 B
Java
15 lines
279 B
Java
// "Replace loop with 'Arrays.fill()' method call" "true"
|
|
|
|
class Test {
|
|
|
|
void test() {
|
|
final String[] arr = new String[2];
|
|
for (<caret>int i = 0; i < arr.length; i++) {
|
|
arr[i] = getString();
|
|
}
|
|
}
|
|
|
|
private static String getString() {
|
|
return "foo";
|
|
}
|
|
} |