mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user