mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
new inference: don't clear foreign caches - remove only expressions which were added
This commit is contained in:
+25
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user