mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-25 19:21:16 +07:00
12 lines
264 B
Java
12 lines
264 B
Java
// "Extract variable 'y' to 'map' operation" "true"
|
|
import java.util.*;
|
|
import java.util.stream.*;
|
|
|
|
public class Test {
|
|
void testRemoveMap() {
|
|
Stream.of("xyz").map(x -> {
|
|
String <caret>y = x+x;
|
|
return y;
|
|
}).forEach(System.out::println);
|
|
}
|
|
} |