Skip to content

Commit d5b3e89

Browse files
Remove use of deprecated API (#1758)
1 parent ad27b61 commit d5b3e89

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

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

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,8 @@ public void handleValidateUpdate(String updateName, Optional<Payloads> input, lo
6565
args = new Object[] {new EncodedValues(input, dataConverterWithWorkflowContext)};
6666
} else {
6767
args =
68-
DataConverter.arrayFromPayloads(
69-
dataConverterWithWorkflowContext,
70-
input,
71-
handler.getArgTypes(),
72-
handler.getGenericArgTypes());
68+
dataConverterWithWorkflowContext.fromPayloads(
69+
input, handler.getArgTypes(), handler.getGenericArgTypes());
7370
}
7471

7572
inboundCallsInterceptor.validateUpdate(
@@ -89,11 +86,8 @@ public Optional<Payloads> handleExecuteUpdate(
8986
args = new Object[] {new EncodedValues(input, dataConverterWithWorkflowContext)};
9087
} else {
9188
args =
92-
DataConverter.arrayFromPayloads(
93-
dataConverterWithWorkflowContext,
94-
input,
95-
handler.getArgTypes(),
96-
handler.getGenericArgTypes());
89+
dataConverterWithWorkflowContext.fromPayloads(
90+
input, handler.getArgTypes(), handler.getGenericArgTypes());
9791
}
9892
Object result =
9993
inboundCallsInterceptor

0 commit comments

Comments
 (0)