Fix an inspector warning
This commit is contained in:
parent
91da8e228b
commit
5612472ae6
@ -32,15 +32,16 @@ abstract class AbstractEpollChannel extends AbstractChannel {
|
|||||||
volatile int fd;
|
volatile int fd;
|
||||||
int id;
|
int id;
|
||||||
|
|
||||||
AbstractEpollChannel(Channel parent, int fd, int flag) {
|
AbstractEpollChannel(int flag) {
|
||||||
|
this(null, socketFd(), flag, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
AbstractEpollChannel(Channel parent, int fd, int flag, boolean active) {
|
||||||
super(parent);
|
super(parent);
|
||||||
this.fd = fd;
|
this.fd = fd;
|
||||||
readFlag = flag;
|
readFlag = flag;
|
||||||
flags |= flag;
|
flags |= flag;
|
||||||
}
|
this.active = active;
|
||||||
|
|
||||||
AbstractEpollChannel(int flag) {
|
|
||||||
this(null, socketFd(), flag);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static int socketFd() {
|
private static int socketFd() {
|
||||||
|
@ -47,6 +47,7 @@ import java.util.concurrent.TimeUnit;
|
|||||||
* maximal performance.
|
* maximal performance.
|
||||||
*/
|
*/
|
||||||
public final class EpollSocketChannel extends AbstractEpollChannel implements SocketChannel {
|
public final class EpollSocketChannel extends AbstractEpollChannel implements SocketChannel {
|
||||||
|
|
||||||
private final EpollSocketChannelConfig config;
|
private final EpollSocketChannelConfig config;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -61,8 +62,7 @@ public final class EpollSocketChannel extends AbstractEpollChannel implements So
|
|||||||
private volatile boolean outputShutdown;
|
private volatile boolean outputShutdown;
|
||||||
|
|
||||||
EpollSocketChannel(Channel parent, int fd) {
|
EpollSocketChannel(Channel parent, int fd) {
|
||||||
super(parent, fd, Native.EPOLLIN);
|
super(parent, fd, Native.EPOLLIN, true);
|
||||||
active = true;
|
|
||||||
config = new EpollSocketChannelConfig(this);
|
config = new EpollSocketChannelConfig(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user