Skip to content

Commit 172ce53

Browse files
committed
Address small review changes
1 parent 6f5735e commit 172ce53

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

temporal-sdk/src/main/java/io/temporal/activity/ActivityInfo.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,16 @@ public interface ActivityInfo {
133133
* @deprecated use {@link #getNamespace()}
134134
*/
135135
@Deprecated
136-
@Nullable
137136
String getActivityNamespace();
138137

138+
/**
139+
* @return the Namespace of this Activity Execution.
140+
*/
139141
String getNamespace();
140142

141143
/**
142144
* @return {@code true} if this activity was scheduled by a workflow execution; {@code false} for
143-
* standalone activities started via {@link io.temporal.client.ActivityClient#start}.
145+
* standalone activities.
144146
*/
145147
default boolean isWorkflowActivity() {
146148
return getWorkflowId() != null;

temporal-sdk/src/main/java/io/temporal/client/ActivityFailedException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
import javax.annotation.Nullable;
55

66
/**
7-
* Thrown by {@link ActivityHandle#getResult()} when the standalone activity fails, times out, or is
8-
* cancelled. The original cause can be retrieved via {@link #getCause()}.
7+
* Thrown by {@link ActivityHandle#getResult()} when the standalone activity was not successful. The
8+
* original cause can be retrieved via {@link #getCause()}.
99
*/
1010
@Experimental
1111
public final class ActivityFailedException extends ActivityException {

0 commit comments

Comments
 (0)