diff --git a/src/main/java/org/jboss/netty/buffer/CompositeChannelBuffer.java b/src/main/java/org/jboss/netty/buffer/CompositeChannelBuffer.java index 3bdc3cf6ab..284fb5420e 100644 --- a/src/main/java/org/jboss/netty/buffer/CompositeChannelBuffer.java +++ b/src/main/java/org/jboss/netty/buffer/CompositeChannelBuffer.java @@ -15,6 +15,8 @@ */ package org.jboss.netty.buffer; +import org.jboss.netty.util.internal.DetectionUtil; + import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; @@ -26,8 +28,6 @@ import java.util.ArrayList; import java.util.Collections; import java.util.List; -import org.jboss.netty.util.internal.DetectionUtil; - /** * A virtual buffer which shows multiple buffers as a single merged buffer. It * is recommended to use {@link ChannelBuffers#wrappedBuffer(ChannelBuffer...)} @@ -605,7 +605,7 @@ public class CompositeChannelBuffer extends AbstractChannelBuffer { * @throws IndexOutOfBoundsException when the specified {@code index} is * less than zero, or larger than {@code capacity()} */ - public ChannelBuffer getBuffer(int index) throws IndexOutOfBoundsException { + public ChannelBuffer getBuffer(int index) { if (index < 0 || index >= capacity()) { throw new IndexOutOfBoundsException("Invalid index: " + index + " - Bytes needed: " + index + ", maximum is " diff --git a/src/main/java/org/jboss/netty/handler/codec/http/websocketx/WebSocketClientHandshaker00.java b/src/main/java/org/jboss/netty/handler/codec/http/websocketx/WebSocketClientHandshaker00.java index c5d42d27d2..a6902ce08d 100644 --- a/src/main/java/org/jboss/netty/handler/codec/http/websocketx/WebSocketClientHandshaker00.java +++ b/src/main/java/org/jboss/netty/handler/codec/http/websocketx/WebSocketClientHandshaker00.java @@ -220,7 +220,7 @@ public class WebSocketClientHandshaker00 extends WebSocketClientHandshaker { * @throws WebSocketHandshakeException */ @Override - public void finishHandshake(Channel channel, HttpResponse response) throws WebSocketHandshakeException { + public void finishHandshake(Channel channel, HttpResponse response) { final HttpResponseStatus status = new HttpResponseStatus(101, "WebSocket Protocol Handshake"); if (!response.getStatus().equals(status)) { diff --git a/src/main/java/org/jboss/netty/handler/codec/http/websocketx/WebSocketClientHandshaker13.java b/src/main/java/org/jboss/netty/handler/codec/http/websocketx/WebSocketClientHandshaker13.java index f40233383e..875b8f9ec7 100644 --- a/src/main/java/org/jboss/netty/handler/codec/http/websocketx/WebSocketClientHandshaker13.java +++ b/src/main/java/org/jboss/netty/handler/codec/http/websocketx/WebSocketClientHandshaker13.java @@ -201,7 +201,7 @@ public class WebSocketClientHandshaker13 extends WebSocketClientHandshaker { * @throws WebSocketHandshakeException */ @Override - public void finishHandshake(Channel channel, HttpResponse response) throws WebSocketHandshakeException { + public void finishHandshake(Channel channel, HttpResponse response) { final HttpResponseStatus status = HttpResponseStatus.SWITCHING_PROTOCOLS; if (!response.getStatus().equals(status)) { diff --git a/src/main/java/org/jboss/netty/handler/codec/http/websocketx/WebSocketClientHandshakerFactory.java b/src/main/java/org/jboss/netty/handler/codec/http/websocketx/WebSocketClientHandshakerFactory.java index 105b4a722e..4c30b25466 100644 --- a/src/main/java/org/jboss/netty/handler/codec/http/websocketx/WebSocketClientHandshakerFactory.java +++ b/src/main/java/org/jboss/netty/handler/codec/http/websocketx/WebSocketClientHandshakerFactory.java @@ -40,7 +40,7 @@ public class WebSocketClientHandshakerFactory { * @throws WebSocketHandshakeException */ public WebSocketClientHandshaker newHandshaker(URI webSocketURL, WebSocketVersion version, String subprotocol, - boolean allowExtensions, Map customHeaders) throws WebSocketHandshakeException { + boolean allowExtensions, Map customHeaders) { return newHandshaker(webSocketURL, version, subprotocol, allowExtensions, customHeaders, Long.MAX_VALUE); } @@ -61,11 +61,11 @@ public class WebSocketClientHandshakerFactory { * @param maxFramePayloadLength * Maximum allowable frame payload length. Setting this value to your application's * requirement may reduce denial of service attacks using long data frames. + * @throws WebSocketHandshakeException */ public WebSocketClientHandshaker newHandshaker( URI webSocketURL, WebSocketVersion version, String subprotocol, - boolean allowExtensions, Map customHeaders, long maxFramePayloadLength) - throws WebSocketHandshakeException { + boolean allowExtensions, Map customHeaders, long maxFramePayloadLength) { if (version == WebSocketVersion.V13) { return new WebSocketClientHandshaker13( webSocketURL, version, subprotocol, allowExtensions, customHeaders, maxFramePayloadLength);