We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48dccd9 commit a264baeCopy full SHA for a264bae
1 file changed
JSONML.java
@@ -163,7 +163,7 @@ private static Object parse(
163
// attribute = value
164
165
attribute = (String)token;
166
- if (!arrayForm && (attribute.equals("tagName") || attribute.equals("childNode"))) {
+ if (!arrayForm && ("tagName".equals(attribute) || "childNode".equals(attribute))) {
167
throw x.syntaxError("Reserved attribute.");
168
}
169
token = x.nextToken();
0 commit comments