use static inner class when can (#1981)

This commit is contained in:
XenoAmess
2021-10-19 11:00:44 +08:00
committed by GitHub
parent 172f4397b3
commit e5506005de
6 changed files with 6 additions and 6 deletions
@@ -627,7 +627,7 @@ public class ClassLoaderCommand extends AnnotatedCommand {
}
}
private class ClassLoaderInterruptHandler implements Handler<Void> {
private static class ClassLoaderInterruptHandler implements Handler<Void> {
private ClassLoaderCommand command;
@@ -349,7 +349,7 @@ public class MBeanCommand extends AnnotatedCommand {
}
public class MBeanInterruptHandler extends CommandInterruptHandler {
public static class MBeanInterruptHandler extends CommandInterruptHandler {
private volatile Timer timer;
@@ -135,7 +135,7 @@ public class SharingResultDistributorImpl implements SharingResultDistributor {
}
}
private class SharingResultConsumerImpl implements ResultConsumer {
private static class SharingResultConsumerImpl implements ResultConsumer {
private BlockingQueue<ResultModel> resultQueue = new ArrayBlockingQueue<ResultModel>(DistributorOptions.resultQueueSize);
private ReentrantLock queueLock = new ReentrantLock();
private InputStatusModel lastInputStatus;
@@ -227,7 +227,7 @@ public class ShellImpl implements Shell {
return currentForegroundJob;
}
private class ShellJobHandler implements JobListener {
private static class ShellJobHandler implements JobListener {
ShellImpl shell;
public ShellJobHandler(ShellImpl shell) {
@@ -658,7 +658,7 @@ public class HttpApiHandler {
}
}
private class ApiTerm implements Term {
private static class ApiTerm implements Term {
private Session session;
@@ -103,7 +103,7 @@ public class ProxyClient {
return httpResponse;
}
class HttpProxyClientHandler extends SimpleChannelInboundHandler<HttpObject> {
static class HttpProxyClientHandler extends SimpleChannelInboundHandler<HttpObject> {
private Promise<SimpleHttpResponse> promise;