diff --git a/gson/src/main/java/com/google/gson/stream/JsonReader.java b/gson/src/main/java/com/google/gson/stream/JsonReader.java index 6cb820be..2359b303 100644 --- a/gson/src/main/java/com/google/gson/stream/JsonReader.java +++ b/gson/src/main/java/com/google/gson/stream/JsonReader.java @@ -890,7 +890,9 @@ public class JsonReader implements Closeable { * * @throws IllegalStateException if the next token is not a literal value. * @throws NumberFormatException if the next literal value cannot be parsed - * as a double, or is non-finite. + * as a double. + * @throws MalformedJsonException if the next literal value is NaN or Infinity + * and this reader is not {@link #setLenient(boolean) lenient}. */ public double nextDouble() throws IOException { int p = peeked;