mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8268664: The documentation of the Scanner.hasNextLine is incorrect
Reviewed-by: rriggs, bpb, iris
This commit is contained in:
parent
cb795893be
commit
0d0f6a4bec
1 changed files with 2 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue