From 305a723374e2bd730a181798dfd90f7eb5fb70ac Mon Sep 17 00:00:00 2001 From: isXander Date: Tue, 4 Apr 2023 11:19:15 +0100 Subject: 📦 New builder API for GsonConfigInstance + deprecation of old constructors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/testmod/java/dev/isxander/yacl/test/config/ExampleConfig.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/testmod') diff --git a/src/testmod/java/dev/isxander/yacl/test/config/ExampleConfig.java b/src/testmod/java/dev/isxander/yacl/test/config/ExampleConfig.java index 5d864da..717132b 100644 --- a/src/testmod/java/dev/isxander/yacl/test/config/ExampleConfig.java +++ b/src/testmod/java/dev/isxander/yacl/test/config/ExampleConfig.java @@ -9,7 +9,9 @@ import java.util.List; import java.nio.file.Path; public class ExampleConfig { - public static final ConfigInstance INSTANCE = new GsonConfigInstance<>(ExampleConfig.class, Path.of("./config/yacl-test.json")); + public static final ConfigInstance INSTANCE = GsonConfigInstance.createBuilder(ExampleConfig.class) + .setPath(Path.of("./config/yacl-test.json")) + .build(); @ConfigEntry public boolean booleanToggle = false; @ConfigEntry public boolean customBooleanToggle = false; -- cgit