diff options
author | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2022-08-27 12:36:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-27 19:36:17 +0900 |
commit | 4caaa107d645b1cbee3d8731905dcff2156c206e (patch) | |
tree | fa329a143d6f5ebf12c988a8653db587e1497cfa | |
parent | dd2efa0fe138999d1dd9a9f4afc9dabd4d2e1e93 (diff) | |
download | OneConfig-4caaa107d645b1cbee3d8731905dcff2156c206e.tar.gz OneConfig-4caaa107d645b1cbee3d8731905dcff2156c206e.tar.bz2 OneConfig-4caaa107d645b1cbee3d8731905dcff2156c206e.zip |
Exclude final from config (#120)
Exclude final
-rw-r--r-- | src/main/java/cc/polyfrost/oneconfig/config/Config.java | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } |