Fixed find bugs warnings
This commit is contained in:
parent
6ce3eebc55
commit
1781e0e1dd
@ -88,7 +88,8 @@ final class LocalClientChannelSink extends AbstractChannelSink {
|
||||
else if (e instanceof MessageEvent) {
|
||||
MessageEvent event = (MessageEvent) e;
|
||||
DefaultLocalChannel channel = (DefaultLocalChannel) event.getChannel();
|
||||
channel.writeBuffer.offer(event);
|
||||
boolean offered = channel.writeBuffer.offer(event);
|
||||
assert offered;
|
||||
channel.flushWriteBuffer();
|
||||
}
|
||||
}
|
||||
|
@ -109,7 +109,8 @@ final class LocalServerChannelSink extends AbstractChannelSink {
|
||||
} else if (e instanceof MessageEvent) {
|
||||
MessageEvent event = (MessageEvent) e;
|
||||
DefaultLocalChannel channel = (DefaultLocalChannel) event.getChannel();
|
||||
channel.writeBuffer.offer(event);
|
||||
boolean offered = channel.writeBuffer.offer(event);
|
||||
assert offered;
|
||||
channel.flushWriteBuffer();
|
||||
}
|
||||
}
|
||||
|
@ -134,7 +134,8 @@ class NioServerSocketPipelineSink extends AbstractChannelSink {
|
||||
} else if (e instanceof MessageEvent) {
|
||||
MessageEvent event = (MessageEvent) e;
|
||||
NioSocketChannel channel = (NioSocketChannel) event.getChannel();
|
||||
channel.writeBuffer.offer(event);
|
||||
boolean offered = channel.writeBuffer.offer(event);
|
||||
assert offered;
|
||||
NioWorker.write(channel, true);
|
||||
}
|
||||
}
|
||||
|
@ -141,7 +141,8 @@ final class XnioClientChannelSink extends AbstractChannelSink {
|
||||
if (xnioChannel instanceof GatheringByteChannel ||
|
||||
xnioChannel instanceof MultipointWritableMessageChannel ||
|
||||
xnioChannel instanceof WritableMessageChannel) {
|
||||
channel.writeBuffer.offer(event);
|
||||
boolean offered = channel.writeBuffer.offer(event);
|
||||
assert offered;
|
||||
if (xnioChannel instanceof SuspendableWriteChannel) {
|
||||
((SuspendableWriteChannel) xnioChannel).resumeWrites();
|
||||
}
|
||||
|
@ -53,7 +53,6 @@ public abstract class HttpMessageDecoder extends ReplayingDecoder<HttpMessageDec
|
||||
private volatile ChannelBuffer content;
|
||||
private volatile int chunkSize;
|
||||
|
||||
|
||||
/**
|
||||
* @author The Netty Project (netty-dev@lists.jboss.org)
|
||||
* @author Trustin Lee (tlee@redhat.com)
|
||||
|
Loading…
Reference in New Issue
Block a user