mirror of
https://github.com/ethauvin/JSON-java.git
synced 2025-06-17 07:50:52 -07:00
Replacing tabs with 4-spaces
This commit is contained in:
parent
7d8353401a
commit
f177c97258
1 changed files with 5 additions and 5 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue