implemented feedback from r585
This commit is contained in:
parent
c3bae2d35e
commit
f4098b5cf7
|
@ -52,7 +52,7 @@ public final class JsonObject extends JsonElement {
|
|||
* @param value the member object.
|
||||
*/
|
||||
public void add(String property, JsonElement value) {
|
||||
Preconditions.checkArgument(property != null);
|
||||
Preconditions.checkNotNull(property);
|
||||
if (value == null) {
|
||||
value = JsonNull.createJsonNull();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user