diff --git a/transport/src/main/java/io/netty/channel/AbstractChannel.java b/transport/src/main/java/io/netty/channel/AbstractChannel.java index 8430624e27..6290e8d9a5 100644 --- a/transport/src/main/java/io/netty/channel/AbstractChannel.java +++ b/transport/src/main/java/io/netty/channel/AbstractChannel.java @@ -606,7 +606,7 @@ public abstract class AbstractChannel extends DefaultAttributeMap implements Cha // Flush immediately only when there's no pending flush. // If there's a pending flush operation, event loop will call flushNow() later, // and thus there's no need to call it now. - if (!force || isFlushPending()) { + if (!force && isFlushPending()) { return; } diff --git a/transport/src/main/java/io/netty/channel/DefaultChannelHandlerContext.java b/transport/src/main/java/io/netty/channel/DefaultChannelHandlerContext.java index c5494ea852..15a9d5b711 100644 --- a/transport/src/main/java/io/netty/channel/DefaultChannelHandlerContext.java +++ b/transport/src/main/java/io/netty/channel/DefaultChannelHandlerContext.java @@ -4,7 +4,7 @@ * The Netty Project licenses this file to you under the Apache License, * version 2.0 (the "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at: - * + *abstract * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software