File tree Expand file tree Collapse file tree
client/src/main/java/com/microsoft/durabletask Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33package com .microsoft .durabletask ;
44
55import java .util .Objects ;
6- import javax .annotation .Nullable ;
6+ import javax .annotation .Nonnull ;
77
88/**
99 * Represents the parent orchestration of a sub-orchestration.
@@ -20,17 +20,17 @@ public final class ParentOrchestrationInstance {
2020 * @param name the name of the parent orchestration
2121 * @param instanceId the instance ID of the parent orchestration
2222 */
23- public ParentOrchestrationInstance (String name , String instanceId ) {
24- this .name = name ;
25- this .instanceId = instanceId ;
23+ public ParentOrchestrationInstance (@ Nonnull String name , @ Nonnull String instanceId ) {
24+ this .name = Objects . requireNonNull ( name , "name" ) ;
25+ this .instanceId = Objects . requireNonNull ( instanceId , "instanceId" ) ;
2626 }
2727
2828 /**
2929 * Gets the name of the parent orchestration.
3030 *
3131 * @return the parent orchestration name
3232 */
33- @ Nullable
33+ @ Nonnull
3434 public String getName () {
3535 return this .name ;
3636 }
@@ -40,7 +40,7 @@ public String getName() {
4040 *
4141 * @return the parent orchestration instance ID
4242 */
43- @ Nullable
43+ @ Nonnull
4444 public String getInstanceId () {
4545 return this .instanceId ;
4646 }
You can’t perform that action at this time.
0 commit comments