Skip to content

Commit

Permalink
fix(api): use LinkedHashMap instead of HashMap in MappedConfiguration…
Browse files Browse the repository at this point in the history
…#getOrCreateSection
  • Loading branch information
Siroshun09 committed Feb 27, 2023
1 parent 5244107 commit f50d698
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import org.jetbrains.annotations.Nullable;
import org.jetbrains.annotations.Unmodifiable;

import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -210,7 +209,7 @@ public void set(@NotNull String path, @Nullable Object value) {
return section;
}

var newSection = new MappedConfiguration(new HashMap<>());
var newSection = new MappedConfiguration(new LinkedHashMap<>());
set(path, newSection.map);

return newSection;
Expand Down

0 comments on commit f50d698

Please sign in to comment.