From 2cb3670b5bdf35dccbc14d691a7f9cdd658a4201 Mon Sep 17 00:00:00 2001 From: Christopher Schnick Date: Tue, 1 Nov 2022 08:08:15 +0100 Subject: [PATCH] Use delombok to fix build --- core/src/main/java/io/xpipe/core/dialog/Choice.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/io/xpipe/core/dialog/Choice.java b/core/src/main/java/io/xpipe/core/dialog/Choice.java index 55d59c5a7..6fd8ed062 100644 --- a/core/src/main/java/io/xpipe/core/dialog/Choice.java +++ b/core/src/main/java/io/xpipe/core/dialog/Choice.java @@ -1,11 +1,9 @@ package io.xpipe.core.dialog; import com.fasterxml.jackson.annotation.JsonCreator; -import lombok.AllArgsConstructor; import lombok.Value; @Value -@AllArgsConstructor(onConstructor=@__({@JsonCreator})) public class Choice { /** @@ -41,4 +39,11 @@ public class Choice { this.description = description; this.disabled = false; } + + @JsonCreator + public Choice(Character character, String description, boolean disabled) { + this.character = character; + this.description = description; + this.disabled = disabled; + } }