File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
src/main/java/com/github/underscore/lodash Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -1662,11 +1662,9 @@ private static boolean checkResult(
16621662 } else if (headerAttributes .containsKey (STANDALONE .substring (1 ))) {
16631663 ((Map ) result ).put (STANDALONE , headerAttributes .get (STANDALONE .substring (1 )));
16641664 } else if (fromType == FromType .FOR_CONVERT
1665- && ((Map .Entry ) ((Map ) result ).entrySet ().iterator ().next ()).getKey ().equals (ROOT )
1666- && (((Map .Entry ) ((Map ) result ).entrySet ().iterator ().next ()).getValue ()
1667- instanceof List
1668- || ((Map .Entry ) ((Map ) result ).entrySet ().iterator ().next ()).getValue ()
1669- instanceof Map )) {
1665+ && Xml .XmlValue .getMapKey (result ).equals (ROOT )
1666+ && (Xml .XmlValue .getMapValue (result ) instanceof List
1667+ || Xml .XmlValue .getMapValue (result ) instanceof Map )) {
16701668 if (xml .startsWith (XML_HEADER )) {
16711669 return true ;
16721670 } else {
You can’t perform that action at this time.
0 commit comments