mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 10:20:15 +07:00
IDEA-168967 Intention to extract local variable created in stream operation lambda to separate stream step.
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// "Extract variable 'set' to separate stream step" "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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user