mirror of
https://github.com/ethauvin/JSON-java.git
synced 2025-06-17 07:50:52 -07:00
flipped the equals function
This commit is contained in:
parent
48dccd91e7
commit
a264baea0e
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue