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