mirror of
https://github.com/stleary/JSON-java.git
synced 2025-08-02 11:05:28 -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 = (String)token;
|
||||
if (!arrayForm && (attribute.equals("tagName") || attribute.equals("childNode"))) {
|
||||
if (!arrayForm && ("tagName".equals(attribute) || "childNode".equals(attribute))) {
|
||||
throw x.syntaxError("Reserved attribute.");
|
||||
}
|
||||
token = x.nextToken();
|
||||
|
Loading…
x
Reference in New Issue
Block a user