mirror of
https://github.com/stleary/JSON-java.git
synced 2026-01-24 00:03:17 -05:00
Removed JSONTokener.back()
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user