Skip to content
Permalink
Browse files
8268664: The documentation of the Scanner.hasNextLine is incorrect
Reviewed-by: rriggs, bpb, iris
  • Loading branch information
Ian Graves committed Jul 2, 2021
1 parent cb79589 commit 0d0f6a4becfb14304f6cea9d3a1d113f049214c0
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/java.base/share/classes/java/util/Scanner.java
@@ -1600,7 +1600,8 @@ public String next(Pattern pattern) {
* 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() {

2 comments on commit 0d0f6a4

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot replied Jul 2, 2021

@iwis

This comment has been minimized.

Copy link

@iwis iwis replied Jul 9, 2021

Now, the return description seems valid.

Please sign in to comment.