We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug When you use Yaml#addDefaultsFromInputStream, the saved config is no longer ordered, even if you set DataType.SORTED.
DataType.SORTED
To Reproduce The following code produces an unordered Yaml file.
private Yaml loadLangConfig(String langCode) { File file = new File(langFolder.toPath().toString(), langCode + ".yml"); Yaml langConfig = SimplixBuilder.fromFile(file) .setReloadSettings(ReloadSettings.INTELLIGENT) .setDataType(DataType.SORTED) .createYaml(); InputStream resource = getDefaultLangFileStream(langCode); if (resource == null) { resource = getDefaultLangFileStream(settings.getDefaultLanguage()); if (resource == null) resource = getDefaultLangFileStream("en_us.yml"); } langConfig.addDefaultsFromInputStream(resource); return langConfig; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
When you use Yaml#addDefaultsFromInputStream, the saved config is no longer ordered, even if you set
DataType.SORTED
.To Reproduce
The following code produces an unordered Yaml file.
The text was updated successfully, but these errors were encountered: