Skip to content

Commit 6fb2717

Browse files
committed
test
1 parent f3a6e3f commit 6fb2717

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,11 @@ public void add(String string) {
112112
*
113113
* @param element the element that needs to be added to the array.
114114
*/
115-
public void add(JsonElement element) {
115+
public boolean add(JsonElement element) {
116116
if (element == null) {
117117
element = JsonNull.INSTANCE;
118118
}
119-
elements.add(element);
119+
return elements.add(element);
120120
}
121121

122122
/**

0 commit comments

Comments
 (0)