StreamToLoop: VoidBlockLambdaFunctionHelper: recreate body if invalid (fixes EA-97022 - PIEAE: CompositePsiElement.getContainingFile)

This commit is contained in:
Tagir Valeev
2017-02-17 11:15:58 +07:00
parent 8efc44d6f6
commit 4230df9ede
3 changed files with 17 additions and 0 deletions
@@ -74,4 +74,11 @@ public class Main {
}
System.out.println(count);
}
void test(List<String> list) {
for (String x : list) {
if (x.isEmpty()) continue;
System.out.println(x);
}
}
}
@@ -48,4 +48,11 @@ public class Main {
System.out.println("In flatmap: "+l);
})).count());
}
void test(List<String> list) {
list.forEach(x -> {
if(x.isEmpty()) return;
System.out.println(x);
});
}
}