lambda -> method ref: reuse comment tracker (IDEA-189934)

This commit is contained in:
Anna.Kozlova
2019-02-04 15:21:43 +01:00
parent c33423601a
commit 1ace9ab2c3
5 changed files with 12 additions and 9 deletions
@@ -4,7 +4,8 @@ import java.util.stream.Collectors;
public class Main {
public void test(List<Set<String>> nested) {
/*non-equal*//*empty*/
/*non-equal*/
/*empty*/
List<String> result = nested.stream().filter(Objects::nonNull).flatMap(Collection::stream).filter(str -> str./*startswith*/startsWith("xyz")).map(String::trim).collect(Collectors.toList());
// 1
/*target is here*/