mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8261880: Change nested classes in java.base to static nested classes where possible
Reviewed-by: redestad
This commit is contained in:
parent
459abd561a
commit
9425d3de83
11 changed files with 15 additions and 15 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue