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

@ -289,7 +289,7 @@ public class FtpClient extends sun.net.ftp.FtpClient {
}
}
private class MLSxParser implements FtpDirParser {
private static class MLSxParser implements FtpDirParser {
public FtpDirEntry parseLine(String line) {
String name = null;
int i = line.lastIndexOf(';');
@ -1762,7 +1762,7 @@ public class FtpClient extends sun.net.ftp.FtpClient {
return this;
}
private class FtpFileIterator implements Iterator<FtpDirEntry>, Closeable {
private static class FtpFileIterator implements Iterator<FtpDirEntry>, Closeable {
private BufferedReader in = null;
private FtpDirEntry nextFile = null;