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 1 changed file with 2 additions and 1 deletion.
@@ -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
Copy link

@openjdk-notifier openjdk-notifier bot commented on 0d0f6a4 Jul 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@iwis
Copy link

@iwis iwis commented on 0d0f6a4 Jul 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now, the return description seems valid.

Please sign in to comment.