blob: 8f31dc0d444be9c9137e1d41ce01a623a9727b39 [file]
// "Fix all 'Stream API call chain can be simplified' problems in file" "true"
import java.util.*;
class Test {
public boolean testAnyMatch(Map<String, Integer> map) {
map.keySet().stream().forEach(System.out::println);
map.values().stream().forEach(System.out::println);
/*3*/
/*4*/
map/*1*/.keySet()/*2*/.stream()/*5*/.forEach(System.out::println);
map.values().stream().forEach(System.out::println);
}
class MyMap extends Map<Integer, String> {
void process() {
keySet().stream().forEach(System.out::println);
}
}
}