1
0
Fork 0
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:
guywithnose 2012-01-30 13:51:50 -05:00
parent 48dccd91e7
commit a264baea0e

View file

@ -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();