Skip to content

Commit a264bae

Browse files
committed
flipped the equals function
1 parent 48dccd9 commit a264bae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

JSONML.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ private static Object parse(
163163
// attribute = value
164164

165165
attribute = (String)token;
166-
if (!arrayForm && (attribute.equals("tagName") || attribute.equals("childNode"))) {
166+
if (!arrayForm && ("tagName".equals(attribute) || "childNode".equals(attribute))) {
167167
throw x.syntaxError("Reserved attribute.");
168168
}
169169
token = x.nextToken();

0 commit comments

Comments
 (0)