Skip to content

Commit 99bf1f8

Browse files
Merge branch 'main' into fix/exclusion-strategy-serialization-2190
2 parents 8178792 + 8260edd commit 99bf1f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ public byte getAsByte() {
364364
* method calls {@link JsonElement#getAsCharacter()} on the element, therefore any of the
365365
* exceptions declared by that method can occur.
366366
*
367-
* @return this element as a primitive short if it is single element array.
367+
* @return this element as a character if it is single element array.
368368
* @throws IllegalStateException if the array is empty or has more than one element.
369369
* @deprecated This method is misleading, as it does not get this element as a char but rather as
370370
* a string's first character.

0 commit comments

Comments
 (0)