IDEA-168967 Intention to extract local variable created in stream operation lambda to separate stream step.

This commit is contained in:
Tagir Valeev
2017-03-02 16:24:07 +07:00
parent 3e57c61729
commit ee38a5cfdd
34 changed files with 521 additions and 1 deletions

View File

@@ -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);
}
}