Fix a ClassCastException in EmbeddedMessageChannel
This commit is contained in:
parent
a35aeb8cd9
commit
90b12ba5d2
@ -17,14 +17,13 @@ package io.netty.channel.embedded;
|
||||
|
||||
import io.netty.buffer.ChannelBufType;
|
||||
import io.netty.buffer.MessageBuf;
|
||||
import io.netty.buffer.Unpooled;
|
||||
import io.netty.channel.ChannelHandler;
|
||||
|
||||
import java.util.ArrayDeque;
|
||||
|
||||
public class EmbeddedMessageChannel extends AbstractEmbeddedChannel {
|
||||
|
||||
public EmbeddedMessageChannel(ChannelHandler... handlers) {
|
||||
super(new ArrayDeque<Object>(), handlers);
|
||||
super(Unpooled.messageBuffer(), handlers);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user