mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 08:45:34 +07:00
GitOrigin-RevId: b5e3b4ace9840968853f95ad80339d7084308d7a
12 lines
257 B
Java
12 lines
257 B
Java
// "Replace loop with 'Arrays.fill()' method call" "true"
|
|
import java.util.Arrays;
|
|
import java.util.function.*;
|
|
|
|
class Test {
|
|
|
|
private void testLambdas() {
|
|
Supplier[] arr = new Supplier[10];
|
|
Arrays.fill(arr, (Supplier) () -> new int[10]);
|
|
}
|
|
|
|
} |