mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-27 05:20:54 +07:00
10 lines
296 B
Java
10 lines
296 B
Java
// "Extract variable 'fn' to 'map' operation" "true"
|
|
import java.util.*;
|
|
import java.util.function.*;
|
|
import java.util.stream.*;
|
|
|
|
public class Test {
|
|
void testFunction() {
|
|
Stream.of("a", "b", "c").<Supplier<String>>map(x -> x::trim).map(fn -> fn.get()).forEach(System.out::println);
|
|
}
|
|
} |