mirror of
https://github.com/stleary/JSON-java.git
synced 2025-08-03 11:25:30 -04:00
flipped the equals function
This commit is contained in:
parent
48dccd91e7
commit
a264baea0e
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user