mirror of
https://github.com/stleary/JSON-java.git
synced 2025-08-03 03:15:32 -04:00
Removed JSONTokener.back()
This commit is contained in:
parent
f177c97258
commit
2e0a8137bd
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user