File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed
main/java/com/github/underscore/lodash
test/java/com/github/underscore/lodash Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,6 @@ public enum Mode {
113113 REPLACE_EMPTY_TAG_WITH_EMPTY_STRING ,
114114 FORCE_ATTRIBUTE_USAGE ,
115115 DEFINE_ROOT_NAME ,
116- FORCE_ATTRIBUTE_USAGE_AND_DEFINE_ROOT_NAME ,
117116 REPLACE_NULL_WITH_EMPTY_VALUE ,
118117 REPLACE_EMPTY_STRING_WITH_EMPTY_VALUE ,
119118 REMOVE_FIRST_LEVEL_XML_TO_JSON ,
@@ -2448,8 +2447,6 @@ public static String jsonToXml(
24482447 result = Xml .toXml (forceAttributeUsage ((Map ) object ), identStep , newRootName );
24492448 } else if (mode == Mode .DEFINE_ROOT_NAME ) {
24502449 result = Xml .toXml ((Map ) object , identStep , newRootName );
2451- } else if (mode == Mode .FORCE_ATTRIBUTE_USAGE_AND_DEFINE_ROOT_NAME ) {
2452- result = Xml .toXml (forceAttributeUsage ((Map ) object ), identStep , newRootName );
24532450 } else if (mode == Mode .REPLACE_NULL_WITH_EMPTY_VALUE ) {
24542451 result = Xml .toXml (replaceNullWithEmptyValue ((Map ) object ), identStep , newRootName );
24552452 } else if (mode == Mode .REPLACE_EMPTY_STRING_WITH_EMPTY_VALUE ) {
Original file line number Diff line number Diff line change @@ -779,7 +779,7 @@ public void renameRoot() {
779779 "<?xml version=\" 1.0\" encoding=\" UTF-8\" ?>\n <json a=\" b\" c=\" d\" ></json>" ,
780780 U .jsonToXml (
781781 "{\" a\" : \" b\" , \" c\" : \" d\" }" ,
782- U .Mode .FORCE_ATTRIBUTE_USAGE_AND_DEFINE_ROOT_NAME ,
782+ U .Mode .FORCE_ATTRIBUTE_USAGE ,
783783 "json" ));
784784 }
785785
You can’t perform that action at this time.
0 commit comments