1
0
Fork 0
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:
Miguel 2017-08-10 19:12:41 -04:00
parent 7d8353401a
commit f177c97258

View file

@ -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);
} }
} }