1
0
Fork 0
mirror of https://github.com/ethauvin/JSON-java.git synced 2025-06-16 23:40:51 -07:00

Removed JSONTokener.back()

This commit is contained in:
Miguel 2017-08-14 13:01:31 -04:00 committed by GitHub
parent f177c97258
commit 2e0a8137bd

View file

@ -237,8 +237,7 @@ public class JSONObject {
if (key != null) {
// Check if key exists
if (this.opt(key) != null) {
// back one token to point to the last key character
x.back();
// key already exists
throw x.syntaxError("Duplicate key \"" + key + "\"");
}
// Only add value if non-null