8300866: Declare some classes final in java.io

Reviewed-by: alanb
This commit is contained in:
Per Minborg 2023-01-23 19:09:39 +00:00
parent 1a3cb8c501
commit d117350875
5 changed files with 12 additions and 14 deletions

View file

@ -145,7 +145,7 @@ final class ProxyingConsole extends Console {
return delegate.charset();
}
private static class WrappingReader extends Reader {
private static final class WrappingReader extends Reader {
private final Reader r;
private final Object lock;
@ -168,7 +168,7 @@ final class ProxyingConsole extends Console {
}
}
private static class WrappingWriter extends PrintWriter {
private static final class WrappingWriter extends PrintWriter {
private final PrintWriter pw;
private final Object lock;