From 93029f13dcc3ff1b093c6cd478d21f6f46d536ef Mon Sep 17 00:00:00 2001 From: Aleksander Nowakowski Date: Tue, 21 Nov 2023 14:04:58 +0100 Subject: [PATCH] Bug fix: Keep Constructor for GroupReturnCode class when using Proguard --- .../main/java/io/runtime/mcumgr/response/HasReturnCode.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mcumgr-core/src/main/java/io/runtime/mcumgr/response/HasReturnCode.java b/mcumgr-core/src/main/java/io/runtime/mcumgr/response/HasReturnCode.java index c632ab40..0f22d30e 100644 --- a/mcumgr-core/src/main/java/io/runtime/mcumgr/response/HasReturnCode.java +++ b/mcumgr-core/src/main/java/io/runtime/mcumgr/response/HasReturnCode.java @@ -1,5 +1,6 @@ package io.runtime.mcumgr.response; +import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import org.jetbrains.annotations.NotNull; @@ -18,6 +19,9 @@ class GroupReturnCode { @JsonProperty("rc") public int rc; + @JsonCreator + public GroupReturnCode() {} + @Override @NotNull public String toString() {