Skip to content

Commit 3076e5b

Browse files
committed
chore: Fix bug, return type is required
Signed-off-by: Javier Aliaga <javier@diagrid.io>
1 parent 768aa2e commit 3076e5b

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

durabletask-client/src/main/java/io/dapr/durabletask/TaskOrchestrationContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ default Task<Void> callSubOrchestrator(String name) {
411411
* @return a new {@link Task} that completes when the sub-orchestration completes or fails
412412
*/
413413
default Task<Void> callSubOrchestrator(String name, Object input) {
414-
return this.callSubOrchestrator(name, input, null);
414+
return this.callSubOrchestrator(name, input, Void.class);
415415
}
416416

417417
/**

durabletask-client/src/main/java/io/dapr/durabletask/TaskOrchestrationExecutor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public TaskOrchestratorResult execute(List<OrchestratorService.HistoryEvent> pas
103103
} catch (Exception e) {
104104
// The orchestrator threw an unhandled exception - fail it
105105
// TODO: What's the right way to log this?
106-
logger.warning("The orchestrator failed with an unhandled exception: " + e.toString());
106+
logger.warning("The orchestrator failed with an unhandled exception: " + e);
107107
context.fail(new FailureDetails(e));
108108
}
109109

sdk-workflows/src/main/java/io/dapr/workflows/WorkflowContext.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import org.slf4j.Logger;
2121

2222
import javax.annotation.Nullable;
23-
2423
import java.time.Duration;
2524
import java.time.Instant;
2625
import java.time.ZonedDateTime;
@@ -383,7 +382,7 @@ default Task<Void> callChildWorkflow(String name) {
383382
* @return a new {@link Task} that completes when the child-workflow completes or fails
384383
*/
385384
default Task<Void> callChildWorkflow(String name, Object input) {
386-
return this.callChildWorkflow(name, input, null);
385+
return this.callChildWorkflow(name, input, Void.class);
387386
}
388387

389388
/**

0 commit comments

Comments
 (0)