mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-31 11:20:55 +07:00
12 lines
277 B
Java
12 lines
277 B
Java
// "Extract variable 'l' to 'asLongStream' operation" "true-preview"
|
|
import java.util.*;
|
|
import java.util.stream.*;
|
|
|
|
public class Test {
|
|
Object[] testBoxed(int[] x) {
|
|
return Arrays.stream(x).mapToObj(i -> {
|
|
long <caret>l = i;
|
|
return l;
|
|
}).toArray();
|
|
}
|
|
} |