testdata for IDEA-121661

This commit is contained in:
Anna Kozlova
2014-03-05 11:39:48 +01:00
parent 0fa7d08f83
commit 380c7a998e
2 changed files with 22 additions and 0 deletions
@@ -0,0 +1,10 @@
// "Replace with forEach" "true"
import java.util.ArrayList;
import java.util.List;
class Sample {
List<String> foo = new ArrayList<>();
{
foo.stream().filter(s -> s != null).forEach(System.out::println);
}
}
@@ -0,0 +1,12 @@
// "Replace with forEach" "true"
import java.util.ArrayList;
import java.util.List;
class Sample {
List<String> foo = new ArrayList<>();
{
for (String s : fo<caret>o) {
if (s != null) System.out.println(s);
}
}
}