Skip to content

Commit

Permalink
fix: spi of xml and yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
troyzhxu committed Dec 8, 2022
1 parent 328afa1 commit 9f7cf72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xjsonkit-api/src/main/java/cn/zhxu/xjson/spi/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ public static DataConvertor jsonb() {

public static DataConvertor xml() {
if (xml == null) {
xml = JsonbFactory.find();
xml = XmlFactory.find();
}
return xml;
}

public static DataConvertor yaml() {
if (yaml == null) {
yaml = JsonbFactory.find();
yaml = YamlFactory.find();
}
return yaml;
}
Expand Down

0 comments on commit 9f7cf72

Please sign in to comment.