diff --git a/gson/src/main/java/com/google/gson/JsonObject.java b/gson/src/main/java/com/google/gson/JsonObject.java index 408d22685d..3bde741190 100644 --- a/gson/src/main/java/com/google/gson/JsonObject.java +++ b/gson/src/main/java/com/google/gson/JsonObject.java @@ -164,7 +164,7 @@ public int size() { * @since 2.10.1 */ public boolean isEmpty() { - return members.size() == 0; + return members.isEmpty(); } /**