Skip to content

Commit

Permalink
DEMO incompatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcono1234 committed May 30, 2024
1 parent b794488 commit b3d4cf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gson/src/main/java/com/google/gson/JsonArray.java
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,11 @@ public void add(String string) {
*
* @param element the element that needs to be added to the array.
*/
public void add(JsonElement element) {
public boolean add(JsonElement element) {
if (element == null) {
element = JsonNull.INSTANCE;
}
elements.add(element);
return elements.add(element);
}

/**
Expand Down

0 comments on commit b3d4cf0

Please sign in to comment.