From eeb5eeb84c8160fb74f1c659db2284aa8c08f06f Mon Sep 17 00:00:00 2001 From: Francesco Guardiani Date: Tue, 30 Apr 2024 11:04:09 +0200 Subject: [PATCH] VOID should return null content type (#304) --- .../src/main/java/dev/restate/sdk/common/CoreSerdes.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sdk-common/src/main/java/dev/restate/sdk/common/CoreSerdes.java b/sdk-common/src/main/java/dev/restate/sdk/common/CoreSerdes.java index 6158ec0d..1f84c94b 100644 --- a/sdk-common/src/main/java/dev/restate/sdk/common/CoreSerdes.java +++ b/sdk-common/src/main/java/dev/restate/sdk/common/CoreSerdes.java @@ -52,6 +52,11 @@ public Void deserialize(byte[] value) { public Void deserialize(ByteString byteString) { return null; } + + @Override + public @Nullable String contentType() { + return null; + } }; /** Pass through {@link Serde} for byte array. */