Skip to content

Commit 1f339a2

Browse files
committed
updated ParentOrchestrationInstance to nonnull
1 parent 556dd31 commit 1f339a2

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

client/src/main/java/com/microsoft/durabletask/ParentOrchestrationInstance.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
package com.microsoft.durabletask;
44

55
import 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
}

0 commit comments

Comments
 (0)