8261880: Change nested classes in java.base to static nested classes where possible

Reviewed-by: redestad
This commit is contained in:
Sergey Tsypanov 2021-05-20 13:56:11 +00:00 committed by Claes Redestad
parent 459abd561a
commit 9425d3de83
11 changed files with 15 additions and 15 deletions

View file

@ -121,7 +121,7 @@ public class FtpURLConnection extends URLConnection {
* - The command socket (FtpClient).
* Since that's the only class that needs to see that, it is an inner class.
*/
protected class FtpInputStream extends FilterInputStream {
protected static class FtpInputStream extends FilterInputStream {
FtpClient ftp;
FtpInputStream(FtpClient cl, InputStream fd) {
super(new BufferedInputStream(fd));
@ -144,7 +144,7 @@ public class FtpURLConnection extends URLConnection {
* - The command socket (FtpClient).
* Since that's the only class that needs to see that, it is an inner class.
*/
protected class FtpOutputStream extends FilterOutputStream {
protected static class FtpOutputStream extends FilterOutputStream {
FtpClient ftp;
FtpOutputStream(FtpClient cl, OutputStream fd) {
super(fd);