stream migration: missed qualifiers restored (IDEA-124820)

This commit is contained in:
Anna Kozlova
2014-05-07 11:57:36 +04:00
parent 88626134a4
commit 1ab69ce2b2
3 changed files with 28 additions and 1 deletions
@@ -0,0 +1,13 @@
// "Replace with collect" "true"
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
class Sample {
List<String> foo = new ArrayList<>();
String foo(){
Sample sm = new Sample();
sm.foo.addAll(foo.stream().collect(Collectors.toList()));
return null;
}
}
@@ -0,0 +1,14 @@
// "Replace with collect" "true"
import java.util.ArrayList;
import java.util.List;
class Sample {
List<String> foo = new ArrayList<>();
String foo(){
Sample sm = new Sample();
for (String s : fo<caret>o) {
sm.foo.add(s);
}
return null;
}
}