8268664: The documentation of the Scanner.hasNextLine is incorrect

Reviewed-by: rriggs, bpb, iris
This commit is contained in:
Ian Graves 2021-07-02 19:46:54 +00:00
parent cb795893be
commit 0d0f6a4bec

View file

@ -1600,7 +1600,8 @@ public final class Scanner implements Iterator<String>, Closeable {
* This method may block while waiting for input. The scanner does not
* advance past any input.
*
* @return true if and only if this scanner has another line of input
* @return true if there is a line separator in the remaining input
* or if the input has other remaining characters
* @throws IllegalStateException if this scanner is closed
*/
public boolean hasNextLine() {