EA-55507 - IOE: PsiJavaParserFacadeImpl.createStatementFromText

This commit is contained in:
Anna Kozlova
2014-04-01 14:17:07 +02:00
parent d33575878b
commit 5bc8717dc9
3 changed files with 41 additions and 2 deletions
@@ -0,0 +1,13 @@
// "Replace with forEach" "true"
import java.util.ArrayList;
import java.util.List;
class Sample {
List<String> foo = new ArrayList<>();
String foo(){
foo.stream().filter(s -> s == null).forEach(s -> {
int i = 0;
});
return null;
}
}
@@ -0,0 +1,13 @@
// "Replace with forEach" "true"
import java.util.ArrayList;
import java.util.List;
class Sample {
List<String> foo = new ArrayList<>();
String foo(){
for (String s : fo<caret>o) {
if (s == null) int i = 0;
}
return null;
}
}