aboutsummaryrefslogtreecommitdiff
path: root/src/testmod/java/dev/isxander
diff options
context:
space:
mode:
authorisXander <xander@isxander.dev>2023-04-04 11:19:15 +0100
committerisXander <xander@isxander.dev>2023-04-04 11:19:15 +0100
commit305a723374e2bd730a181798dfd90f7eb5fb70ac (patch)
treecaffd5bac96bda5570a6b20acdf945bc02a16f56 /src/testmod/java/dev/isxander
parentb98f9b6ec98a69955fc45cd6d1b8796f14ee9cb5 (diff)
downloadYetAnotherConfigLib-305a723374e2bd730a181798dfd90f7eb5fb70ac.tar.gz
YetAnotherConfigLib-305a723374e2bd730a181798dfd90f7eb5fb70ac.tar.bz2
YetAnotherConfigLib-305a723374e2bd730a181798dfd90f7eb5fb70ac.zip
📦 New builder API for GsonConfigInstance + deprecation of old constructors
Diffstat (limited to 'src/testmod/java/dev/isxander')
-rw-r--r--src/testmod/java/dev/isxander/yacl/test/config/ExampleConfig.java4
1 files changed, 3 insertions, 1 deletions
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<ExampleConfig> INSTANCE = new GsonConfigInstance<>(ExampleConfig.class, Path.of("./config/yacl-test.json"));
+ public static final ConfigInstance<ExampleConfig> INSTANCE = GsonConfigInstance.createBuilder(ExampleConfig.class)
+ .setPath(Path.of("./config/yacl-test.json"))
+ .build();
@ConfigEntry public boolean booleanToggle = false;
@ConfigEntry public boolean customBooleanToggle = false;