mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-26 03:51:12 +07:00
9 lines
272 B
Java
9 lines
272 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().map(Map::keySet).flatMap(set -> set.stream()).forEach(System.out::println);
|
|
}
|
|
} |