Skip to content

Commit 3e5ccb1

Browse files
authored
Change the use of == operator to isEmpty() in JsonObject (#2768)
1 parent e430a3d commit 3e5ccb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gson/src/main/java/com/google/gson/JsonObject.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public int size() {
164164
* @since 2.10.1
165165
*/
166166
public boolean isEmpty() {
167-
return members.size() == 0;
167+
return members.isEmpty();
168168
}
169169

170170
/**

0 commit comments

Comments
 (0)