1
0
Fork 0
mirror of https://github.com/ethauvin/JSON-java.git synced 2025-06-17 07:50:52 -07:00

added complete tests

This commit is contained in:
guywithnose 2012-01-30 10:15:05 -05:00
parent fd0d1156d4
commit 48dccd91e7
20 changed files with 8871 additions and 935 deletions

View file

@ -163,7 +163,7 @@ public class JSONML {
// attribute = value
attribute = (String)token;
if (!arrayForm && (attribute == "tagName" || attribute == "childNode")) {
if (!arrayForm && (attribute.equals("tagName") || attribute.equals("childNode"))) {
throw x.syntaxError("Reserved attribute.");
}
token = x.nextToken();
@ -462,4 +462,4 @@ public class JSONML {
}
return sb.toString();
}
}
}