new inference: don't clear foreign caches - remove only expressions which were added

This commit is contained in:
Anna Kozlova
2015-10-02 20:32:07 +02:00
parent 565835bd5f
commit 2a27f86b79
5 changed files with 34 additions and 7 deletions
@@ -0,0 +1,25 @@
import java.util.List;
import java.util.function.Supplier;
import java.util.stream.Collectors;
import java.util.stream.Stream;
class Test {
void f(Stream<ReviewDiffRecord> stream1) {
final Supplier<List<String>> revisionDiffItemDTOs = () -> stream1.map(record -> {
foo(null);
final Object stream = record.getAllNodes().stream();
return "";
}).collect(Collectors.toList());
}
private <T> void foo(T t) throws RuntimeException {}
private class ReviewDiffRecord {
List<String> getAllNodes() {
return null;
}
}
}