Skip to content

Commit

Permalink
Bump client springboot version
Browse files Browse the repository at this point in the history
  • Loading branch information
Shoothzj committed Jan 4, 2022
1 parent 7678c09 commit ab0e19f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,9 @@ public void process(Properties properties, Map<String, Object> map) {
* Create the {@link Yaml} instance to use.
*/
private Yaml createYaml() {
StrictMapAppenderConstructor constructor = new StrictMapAppenderConstructor();
Representer representer = new Representer();
DumperOptions dumperOptions = new DumperOptions();
dumperOptions.setDefaultFlowStyle(representer.getDefaultFlowStyle());
dumperOptions.setDefaultScalarStyle(representer.getDefaultScalarStyle());
dumperOptions.setAllowReadOnlyProperties(representer.getPropertyUtils().isAllowReadOnlyProperties());
dumperOptions.setTimeZone(representer.getTimeZone());
LoaderOptions loadingConfig = new LoaderOptions();
loadingConfig.setAllowDuplicateKeys(false);
return new Yaml(constructor, representer, dumperOptions, loadingConfig);
return new Yaml(new SafeConstructor(), new Representer(), new DumperOptions(), loadingConfig);
}

private boolean process(MatchCallback callback, Yaml yaml, String content) {
Expand Down
9 changes: 9 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,15 @@
</plugins>
</build>
</profile>
<profile>
<id>jdk17</id>
<activation>
<jdk>[17,)</jdk>
</activation>
<properties>
<test.additional.args> --add-opens java.base/java.lang=ALL-UNNAMED </test.additional.args>
</properties>
</profile>
</profiles>

<reporting>
Expand Down

0 comments on commit ab0e19f

Please sign in to comment.