From 488ffb11d8bb1650982d7514392c4951b4365e98 Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Tue, 9 Jul 2013 21:53:44 +0200 Subject: [PATCH] Revert "Fixed ClassCastException in setting min,max sctp streams" This reverts commit 276d619afbe47667c7cc552aee652a1f385fd1ad. --- .../java/io/netty/channel/sctp/DefaultSctpChannelConfig.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/transport-sctp/src/main/java/io/netty/channel/sctp/DefaultSctpChannelConfig.java b/transport-sctp/src/main/java/io/netty/channel/sctp/DefaultSctpChannelConfig.java index fd9e868215..8e7c2ffb22 100644 --- a/transport-sctp/src/main/java/io/netty/channel/sctp/DefaultSctpChannelConfig.java +++ b/transport-sctp/src/main/java/io/netty/channel/sctp/DefaultSctpChannelConfig.java @@ -26,7 +26,6 @@ import io.netty.channel.RecvByteBufAllocator; import io.netty.util.internal.PlatformDependent; import java.io.IOException; -import java.util.List; import java.util.Map; import static io.netty.channel.sctp.SctpChannelOption.*; @@ -88,8 +87,7 @@ public class DefaultSctpChannelConfig extends DefaultChannelConfig implements Sc } else if (option == SCTP_NODELAY) { setSctpNoDelay((Boolean) value); } else if (option == SCTP_INIT_MAXSTREAMS) { - List minMax = (List) value; - setInitMaxStreams(SctpStandardSocketOptions.InitMaxStreams.create(minMax.get(0), minMax.get(1))); + setInitMaxStreams((SctpStandardSocketOptions.InitMaxStreams) value); } else { return super.setOption(option, value); }