support min/max in stream api migration, rearrange tests

This commit is contained in:
Roman Ivanov
2017-08-02 12:57:45 +07:00
parent dd4ba58889
commit 72bab18a58
561 changed files with 2091 additions and 17 deletions
@@ -0,0 +1,9 @@
// "Replace with forEach" "true"
import java.util.Collection;
public class Test {
void test(Object obj) {
((Collection<String>) obj).forEach(System.out::println);
}
}
@@ -0,0 +1,10 @@
// "Replace with forEach" "true"
import java.util.ArrayList;
import java.util.List;
class Sample {
List<Exception> foo = new ArrayList<>();
{
foo.forEach(Throwable::printStackTrace);
}
}
@@ -0,0 +1,11 @@
// "Replace with forEach" "true"
import java.util.Collection;
public class Test {
void test(Object obj) {
for(String str : (Collection<String>)<caret>obj) {
System.out.println(str);
}
}
}
@@ -0,0 +1,12 @@
// "Replace with forEach" "true"
import java.util.ArrayList;
import java.util.List;
class Sample {
List<Exception> foo = new ArrayList<>();
{
for (Exception e : fo<caret>o) {
e.printStackTrace();
}
}
}