Skip to content

Commit bbfd2d8

Browse files
committed
Fix a typo in workflowClientCallsInterceptor() method name introduced in temporalio#382
1 parent fd6bb90 commit bbfd2d8

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

temporal-sdk/src/main/java/io/temporal/common/interceptors/WorkflowClientInterceptor.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public interface WorkflowClientInterceptor {
3535
* @return decorated stub
3636
* @deprecated consider implementing all intercepting functionality using {@link
3737
* WorkflowClientCallsInterceptor} that is produced in {@link
38-
* #workflowClientClassInterceptor}. This method has to stay temporary because
38+
* #workflowClientCallsInterceptor}. This method has to stay temporary because
3939
* TimeLockingInterceptor has to intercept top level {@link WorkflowStub} methods.
4040
*/
4141
@Deprecated
@@ -49,7 +49,7 @@ WorkflowStub newUntypedWorkflowStub(
4949
* @return decorated stub
5050
* @deprecated consider implementing all intercepting functionality using {@link
5151
* WorkflowClientCallsInterceptor} that is produced in {@link
52-
* #workflowClientClassInterceptor}. This method has to stay temporary because
52+
* #workflowClientCallsInterceptor}. This method has to stay temporary because
5353
* TimeLockingInterceptor has to intercept top level {@link WorkflowStub} methods.
5454
*/
5555
@Deprecated
@@ -59,11 +59,11 @@ WorkflowStub newUntypedWorkflowStub(
5959
ActivityCompletionClient newActivityCompletionClient(ActivityCompletionClient next);
6060

6161
/**
62-
* Called once during creation of WorkflowClient to create a chain of Client Interceptors
62+
* Called once during creation of WorkflowClient to create a chain of Client Workflow Interceptors
6363
*
6464
* @param next next workflow client interceptor in the chain of interceptors
6565
* @return new interceptor that should decorate calls to {@code next}
6666
*/
67-
WorkflowClientCallsInterceptor workflowClientClassInterceptor(
67+
WorkflowClientCallsInterceptor workflowClientCallsInterceptor(
6868
WorkflowClientCallsInterceptor next);
6969
}

temporal-sdk/src/main/java/io/temporal/common/interceptors/WorkflowClientInterceptorBase.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public ActivityCompletionClient newActivityCompletionClient(ActivityCompletionCl
4848
}
4949

5050
@Override
51-
public WorkflowClientCallsInterceptor workflowClientClassInterceptor(
51+
public WorkflowClientCallsInterceptor workflowClientCallsInterceptor(
5252
WorkflowClientCallsInterceptor next) {
5353
return next;
5454
}

temporal-sdk/src/main/java/io/temporal/internal/sync/WorkflowClientInternal.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ private WorkflowClientCallsInterceptor initializeClientInvoker() {
101101
new RootWorkflowClientInvoker(genericClient, options, metricsScope);
102102
for (WorkflowClientInterceptor clientInterceptor : interceptors) {
103103
workflowClientInvoker =
104-
clientInterceptor.workflowClientClassInterceptor(workflowClientInvoker);
104+
clientInterceptor.workflowClientCallsInterceptor(workflowClientInvoker);
105105
}
106106
return workflowClientInvoker;
107107
}

temporal-sdk/src/test/java/io/temporal/workflow/ChildWorkflowRetryTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public class ChildWorkflowRetryTest {
6767
.setInterceptors(
6868
new WorkflowClientInterceptorBase() {
6969
@Override
70-
public WorkflowClientCallsInterceptor workflowClientClassInterceptor(
70+
public WorkflowClientCallsInterceptor workflowClientCallsInterceptor(
7171
WorkflowClientCallsInterceptor next) {
7272
return new WorkflowClientCallsInterceptorBase(next) {
7373
@Override

temporal-sdk/src/test/java/io/temporal/workflow/WorkflowTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public void setUp() {
142142
.setInterceptors(
143143
new WorkflowClientInterceptorBase() {
144144
@Override
145-
public WorkflowClientCallsInterceptor workflowClientClassInterceptor(
145+
public WorkflowClientCallsInterceptor workflowClientCallsInterceptor(
146146
WorkflowClientCallsInterceptor next) {
147147
return new WorkflowClientCallsInterceptorBase(next) {
148148
@Override

0 commit comments

Comments
 (0)