This commit is contained in:
Looly
2019-09-28 03:13:27 +08:00
parent daf85caf9e
commit 596a4f1e57
110 changed files with 535 additions and 617 deletions

View File

@@ -143,7 +143,7 @@ public class AioServer implements Closeable{
* @return 服务是否开启状态
*/
public boolean isOpen() {
return (null == this.channel) ? false : this.channel.isOpen();
return (null != this.channel) && this.channel.isOpen();
}
/**

View File

@@ -153,7 +153,7 @@ public class AioSession implements Closeable{
* @return 会话是否打开状态
*/
public boolean isOpen() {
return (null == this.channel) ? false : this.channel.isOpen();
return (null != this.channel) && this.channel.isOpen();
}
/**

View File

@@ -29,7 +29,7 @@ public enum Operation {
* @see SelectionKey#OP_CONNECT
* @see SelectionKey#OP_ACCEPT
*/
private Operation(int value) {
Operation(int value) {
this.value = value;
}