blob: 2813cdf0957c7dca3708f8f9de26b9c07fe89b5d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// "Replace with forEach" "true"
import java.util.ArrayList;
import java.util.List;
class Sample extends ArrayList<String> {
void main() {
this.stream().filter(tag -> !super.contains(tag)).forEach(tag -> {
add(tag.trim());
});
}
static boolean foo(List<String> a){ return false;}
}
|