mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-22 23:20:57 +07:00
22 lines
485 B
Java
22 lines
485 B
Java
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();
|
|
}
|
|
}
|