mirror of
https://github.com/fankes/JSON-java-compat.git
synced 2025-09-06 02:35:33 +08:00
flipped the equals function
This commit is contained in:
@@ -163,7 +163,7 @@ public class JSONML {
|
|||||||
// attribute = value
|
// attribute = value
|
||||||
|
|
||||||
attribute = (String)token;
|
attribute = (String)token;
|
||||||
if (!arrayForm && (attribute.equals("tagName") || attribute.equals("childNode"))) {
|
if (!arrayForm && ("tagName".equals(attribute) || "childNode".equals(attribute))) {
|
||||||
throw x.syntaxError("Reserved attribute.");
|
throw x.syntaxError("Reserved attribute.");
|
||||||
}
|
}
|
||||||
token = x.nextToken();
|
token = x.nextToken();
|
||||||
|
Reference in New Issue
Block a user