From a264baea0e02c2c1494847306a2d31a13002d331 Mon Sep 17 00:00:00 2001 From: guywithnose Date: Mon, 30 Jan 2012 13:51:50 -0500 Subject: [PATCH] flipped the equals function --- JSONML.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JSONML.java b/JSONML.java index 5325cff..d29be71 100755 --- a/JSONML.java +++ b/JSONML.java @@ -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();