implemented feedback from r585

This commit is contained in:
Inderjeet Singh 2010-11-05 22:18:35 +00:00
parent c3bae2d35e
commit f4098b5cf7

View File

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