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