mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
9 lines
296 B
Java
9 lines
296 B
Java
// "Extract variable 'arr' to separate stream step" "true"
|
|
import java.util.*;
|
|
import java.util.stream.*;
|
|
|
|
public class Test {
|
|
String testArrayInitializer() {
|
|
return LongStream.of(1, 2, 3).mapToObj(x -> new long[]{x}).map(arr -> Arrays.toString(arr)).collect(Collectors.joining(","));
|
|
}
|
|
} |