mirror of
https://github.com/ethauvin/JSON-java.git
synced 2025-06-17 07:50:52 -07:00
Removed JSONTokener.back()
This commit is contained in:
parent
f177c97258
commit
2e0a8137bd
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue