mirror of
https://github.com/alibaba/arthas.git
synced 2024-04-21 10:21:39 +00:00
use static inner class when can (#1981)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
+1
-1
@@ -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) {
|
||||
|
||||
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user