Skip to content

Commit

Permalink
Generify the YAMLSection group of classes
Browse files Browse the repository at this point in the history
  • Loading branch information
ME1312 committed Mar 25, 2019
1 parent d1001e7 commit 720a686
Show file tree
Hide file tree
Showing 13 changed files with 1,040 additions and 975 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public void reload() throws IOException {
public void save() throws IOException {
if (!file.exists()) file.createNewFile();
FileWriter writer = new FileWriter(file);
yaml.dump(config.map, writer);
yaml.dump(config.clone(), writer);
writer.close();
}

Expand All @@ -96,7 +96,7 @@ public boolean equals(Object object) {

@Override
public String toString() {
return yaml.dump(config.map);
return config.toString();
}

static DumperOptions getDumperOptions() {
Expand Down
Loading

0 comments on commit 720a686

Please sign in to comment.