aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost/oneconfig/config
diff options
context:
space:
mode:
authorDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-08-27 12:36:17 +0200
committerGitHub <noreply@github.com>2022-08-27 19:36:17 +0900
commit4caaa107d645b1cbee3d8731905dcff2156c206e (patch)
treefa329a143d6f5ebf12c988a8653db587e1497cfa /src/main/java/cc/polyfrost/oneconfig/config
parentdd2efa0fe138999d1dd9a9f4afc9dabd4d2e1e93 (diff)
downloadOneConfig-4caaa107d645b1cbee3d8731905dcff2156c206e.tar.gz
OneConfig-4caaa107d645b1cbee3d8731905dcff2156c206e.tar.bz2
OneConfig-4caaa107d645b1cbee3d8731905dcff2156c206e.zip
Exclude final from config (#120)
Exclude final
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/config')
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/config/Config.java2
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();
}