mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-28 04:37:32 +07:00
GitOrigin-RevId: a9d5627d25572edeb2f920aff62d108dd6f183ac
15 lines
258 B
Java
15 lines
258 B
Java
// "Replace loop with 'Arrays.fill()' method call" "true"
|
|
|
|
import java.util.Arrays;
|
|
|
|
class Test {
|
|
|
|
void test() {
|
|
final String[] arr = new String[2];
|
|
Arrays.fill(arr, getString());
|
|
}
|
|
|
|
private static String getString() {
|
|
return "foo";
|
|
}
|
|
} |