-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid warning on analytics #42071
Avoid warning on analytics #42071
Conversation
Did we have telemetry in LTS? If so, please add the proper backport label |
@@ -444,7 +444,7 @@ public void close() throws IOException { | |||
})) { | |||
return scanner.nextLine(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about checking if the scanner.hasNextLine() before trying to read the line? It would allow to provide a warn explaining that no prompt was read
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
scanner.hasNextLine()
seems to block waiting for user input.
Status for workflow
|
fixes #42058