use static inner class when can (#1981)

pull/2008/head
XenoAmess 3 years ago committed by GitHub
parent 172f4397b3
commit e5506005de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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;

Loading…
Cancel
Save