mirror of
https://github.com/fankes/JSON-java-compat.git
synced 2025-09-07 03:06:03 +08:00
Removed JSONTokener.back()
This commit is contained in:
@@ -237,8 +237,7 @@ public class JSONObject {
|
|||||||
if (key != null) {
|
if (key != null) {
|
||||||
// Check if key exists
|
// Check if key exists
|
||||||
if (this.opt(key) != null) {
|
if (this.opt(key) != null) {
|
||||||
// back one token to point to the last key character
|
// key already exists
|
||||||
x.back();
|
|
||||||
throw x.syntaxError("Duplicate key \"" + key + "\"");
|
throw x.syntaxError("Duplicate key \"" + key + "\"");
|
||||||
}
|
}
|
||||||
// Only add value if non-null
|
// Only add value if non-null
|
||||||
|
Reference in New Issue
Block a user