Skip to content

Commit

Permalink
Fix a ClassCastException in EmbeddedMessageChannel
Browse files Browse the repository at this point in the history
  • Loading branch information
trustin committed Jun 12, 2012
1 parent a35aeb8 commit 90b12ba
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -17,14 +17,13 @@

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
Expand Down

0 comments on commit 90b12ba

Please sign in to comment.