mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-10 01:09:46 +07:00
12 lines
279 B
Java
12 lines
279 B
Java
// "Extract variable 'l' to 'map' operation" "true-preview"
|
|
import java.util.*;
|
|
import java.util.stream.*;
|
|
|
|
public class Test {
|
|
long[] testAsLongStream(int[] x) {
|
|
return Arrays.stream(x).mapToLong((i -> {
|
|
int <caret>l = i * 2;
|
|
return l;
|
|
})).toArray();
|
|
}
|
|
} |