From 4caaa107d645b1cbee3d8731905dcff2156c206e Mon Sep 17 00:00:00 2001 From: DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> Date: Sat, 27 Aug 2022 12:36:17 +0200 Subject: Exclude final from config (#120) Exclude final --- src/main/java/cc/polyfrost/oneconfig/config/Config.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cc/polyfrost/oneconfig/config/Config.java b/src/main/java/cc/polyfrost/oneconfig/config/Config.java index fe7d7f7..eaf4df4 100644 --- a/src/main/java/cc/polyfrost/oneconfig/config/Config.java +++ b/src/main/java/cc/polyfrost/oneconfig/config/Config.java @@ -206,7 +206,7 @@ public class Config { protected GsonBuilder addGsonOptions(GsonBuilder builder) { return builder .registerTypeAdapter(this.getClass(), new InstanceSupplier<>(this)) - .excludeFieldsWithModifiers(Modifier.TRANSIENT) + .excludeFieldsWithModifiers(Modifier.TRANSIENT, Modifier.FINAL) .setPrettyPrinting(); } -- cgit