Skip to content

Commit cafd264

Browse files
committed
Sync with underscore-java.
1 parent 1689e03 commit cafd264

File tree

1 file changed

+1
-2
lines changed
  • src/main/java/com/github/underscore

1 file changed

+1
-2
lines changed

src/main/java/com/github/underscore/U.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ public class U<T> extends Underscore<T> {
8585
private static String lower = "[a-z\\xdf-\\xf6\\xf8-\\xff]+";
8686
private static String selfClosing = "-self-closing";
8787
private static String nilKey = "-nil";
88-
private static String nilKeyNs = ":nil";
8988
private static java.util.regex.Pattern reWords =
9089
java.util.regex.Pattern.compile(
9190
upper
@@ -3027,7 +3026,7 @@ public static Map<String, Object> replaceNilWithNull(Map<String, Object> map) {
30273026
Object outValue = makeReplaceNilWithNull(entry.getValue());
30283027
if (outValue instanceof Map
30293028
&& (nilKey.equals(Xml.XmlValue.getMapKey(outValue))
3030-
|| Xml.XmlValue.getMapKey(outValue).endsWith(nilKeyNs))
3029+
|| Xml.XmlValue.getMapKey(outValue).endsWith(":nil"))
30313030
&& "true".equals(Xml.XmlValue.getMapValue(outValue))
30323031
&& ((Map) outValue).containsKey(selfClosing)
30333032
&& "true".equals(((Map) outValue).get(selfClosing))) {

0 commit comments

Comments
 (0)