1
mirror of https://github.com/CarmJos/EasyConfiguration.git synced 2026-06-04 10:38:19 +08:00

feat(source): Update sources' original type

This commit is contained in:
2025-02-16 02:04:14 +08:00
parent eff91b0496
commit 96ed604cd9
13 changed files with 160 additions and 39 deletions
@@ -27,7 +27,7 @@ import java.nio.charset.StandardCharsets;
import java.util.*;
import java.util.regex.Pattern;
public class YAMLSource extends FileConfigSource<MemorySection, Map<?, ?>, YAMLSource> implements CommentedSection {
public class YAMLSource extends FileConfigSource<MemorySection, Map<String, Object>, YAMLSource> implements CommentedSection {
protected final @NotNull YamlConstructor yamlConstructor;
protected final @NotNull YamlRepresenter yamlRepresenter;
@@ -60,7 +60,7 @@ public class YAMLSource extends FileConfigSource<MemorySection, Map<?, ?>, YAMLS
}
@Override
public @NotNull Map<?, ?> original() {
public @NotNull Map<String, Object> original() {
return section().data();
}