We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4bc6c1 commit d53b3eaCopy full SHA for d53b3ea
gson/src/main/java/com/google/gson/stream/JsonReader.java
@@ -890,7 +890,9 @@ public void nextNull() throws IOException {
890
*
891
* @throws IllegalStateException if the next token is not a literal value.
892
* @throws NumberFormatException if the next literal value cannot be parsed
893
- * as a double, or is non-finite.
+ * as a double.
894
+ * @throws MalformedJsonException if the next literal value is NaN or Infinity
895
+ * and this reader is not {@link #setLenient(boolean) lenient}.
896
*/
897
public double nextDouble() throws IOException {
898
int p = peeked;
0 commit comments