mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-25 19:21:16 +07:00
12 lines
320 B
Java
12 lines
320 B
Java
// "Extract variable 'set' to 'map' operation" "true"
|
|
import java.util.*;
|
|
import java.util.stream.*;
|
|
|
|
public class Test {
|
|
void testMap(List<Map<String, String>> list) {
|
|
list.stream().flatMap(map -> {
|
|
Set<String> <caret>set = map.keySet();
|
|
return set.stream();
|
|
}).forEach(System.out::println);
|
|
}
|
|
} |