|
36 | 36 |
|
37 | 37 | import com.google.common.base.Strings; |
38 | 38 | import com.uber.cadence.api.v1.*; |
39 | | -import java.nio.ByteBuffer; |
40 | 39 | import java.util.ArrayList; |
41 | 40 | import java.util.Collections; |
42 | 41 | import java.util.HashMap; |
@@ -254,13 +253,13 @@ static StatusFilter statusFilter(com.uber.cadence.entities.WorkflowExecutionClos |
254 | 253 | return StatusFilter.newBuilder().setStatus(workflowExecutionCloseStatus(t)).build(); |
255 | 254 | } |
256 | 255 |
|
257 | | - static Map<String, Payload> payloadByteBufferMap(Map<String, ByteBuffer> t) { |
| 256 | + static Map<String, Payload> payloadByteBufferMap(Map<String, byte[]> t) { |
258 | 257 | if (t == null) { |
259 | 258 | return Collections.emptyMap(); |
260 | 259 | } |
261 | 260 | Map<String, Payload> v = new HashMap<>(); |
262 | 261 | for (String key : t.keySet()) { |
263 | | - v.put(key, payload(t.get(key).array())); |
| 262 | + v.put(key, payload(t.get(key))); |
264 | 263 | } |
265 | 264 | return v; |
266 | 265 | } |
@@ -467,13 +466,13 @@ static com.uber.cadence.entities.WorkflowQuery workflowQuery(WorkflowQuery t) { |
467 | 466 | return res; |
468 | 467 | } |
469 | 468 |
|
470 | | - static Map<String, ByteBuffer> payloadMap(Map<String, Payload> t) { |
| 469 | + static Map<String, byte[]> payloadMap(Map<String, Payload> t) { |
471 | 470 | if (t == null) { |
472 | 471 | return null; |
473 | 472 | } |
474 | | - Map<String, ByteBuffer> v = new HashMap<>(); |
| 473 | + Map<String, byte[]> v = new HashMap<>(); |
475 | 474 | for (String key : t.keySet()) { |
476 | | - v.put(key, ByteBuffer.wrap(payload(t.get(key)))); |
| 475 | + v.put(key, payload(t.get(key))); |
477 | 476 | } |
478 | 477 | return v; |
479 | 478 | } |
|
0 commit comments