recursive getLambdaParameterType problem: don't check nested lambda body for unchecked exceptions, that's impossible anyway (IDEA-146161)

This commit is contained in:
Anna Kozlova
2015-10-09 14:29:33 +02:00
parent af64a71f84
commit 773e192f1a
4 changed files with 36 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
import java.util.Optional;
import java.util.concurrent.CompletableFuture;
class Test {
Optional<String> getOptionalAssigneeId() {
return null;
}
public void getById(Optional<Test> join, CompletableFuture<Void> voidCompletableFuture) {
voidCompletableFuture.thenApply(v -> {
return join.map(caze -> {
caze.getOptionalAssigneeId().map(id -> {
String s = id;
return null;
});
return null;
});
}).join();
}
}