8342936: Enhance java.io.IO with parameter-less println() and readln()

Reviewed-by: asotona, jpai, naoto
This commit is contained in:
Jan Lahoda 2024-11-14 08:22:51 +00:00
parent b54bd824b5
commit c3776db498
14 changed files with 252 additions and 10 deletions

View file

@ -117,6 +117,18 @@ final class ProxyingConsole extends Console {
}
}
/**
* {@inheritDoc}
*
* @throws IOError {@inheritDoc}
*/
@Override
public String readln() {
synchronized (readLock) {
return delegate.readln();
}
}
/**
* {@inheritDoc}
*/