mirror of
https://github.com/fankes/JSON-java-compat.git
synced 2025-09-06 10:45:23 +08:00
Replacing tabs with 4-spaces
This commit is contained in:
@@ -236,15 +236,15 @@ 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();
|
||||
if (this.opt(key) != null) {
|
||||
// back one token to point to the last key character
|
||||
x.back();
|
||||
throw x.syntaxError("Duplicate key \"" + key + "\"");
|
||||
}
|
||||
}
|
||||
// Only add value if non-null
|
||||
Object value = x.nextValue();
|
||||
if (value!=null) {
|
||||
this.put(key, value);
|
||||
this.put(key, value);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user