blob: 2213c2754ed1b6ee84b4347e891be9438b043727 [file]
// "Replace with 'peek'" "true"
import java.util.List;
public class Main {
void test(List<String> list) {
long count = list.stream()
.ma<caret>p(e -> {
if(e.isEmpty()) {
System.out.println("Empty line passed!");
throw new IllegalArgumentException();
}
// hello
return /* in return */ e;
})
.count();
System.out.println(count);
}
}