Use delombok to fix build

This commit is contained in:
Christopher Schnick 2022-11-01 08:08:15 +01:00
parent 3c72078d2b
commit 2cb3670b5b

View file

@ -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;
}
}