Skip to content

Commit

Permalink
Change the use of == operator to isEmpty() in JsonObject (#2768)
Browse files Browse the repository at this point in the history
  • Loading branch information
panic08 authored Oct 20, 2024
1 parent e430a3d commit 3e5ccb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gson/src/main/java/com/google/gson/JsonObject.java
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public int size() {
* @since 2.10.1
*/
public boolean isEmpty() {
return members.size() == 0;
return members.isEmpty();
}

/**
Expand Down

0 comments on commit 3e5ccb1

Please sign in to comment.