GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Remove throws Exception from listener method · netty/netty@393bd1d

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • codec-base/src/main/java/io/netty/handler/codec
    • MessageAggregator.java
  • codec-compression/src
    • main/java/io/netty/handler/codec/compression
      • EncoderUtil.java
    • test/java/io/netty/handler/codec/compression
      • Lz4FrameEncoderTest.java
  • codec-http2/src
    • main/java/io/netty/handler/codec/http2
      • DefaultHttp2ConnectionEncoder.java
      • Http2ConnectionHandler.java
    • test/java/io/netty/handler/codec/http2
      • DefaultHttp2ConnectionTest.java
      • DefaultHttp2PushPromiseFrameTest.java
      • Http2ConnectionRoundtripTest.java
      • Http2FrameCodecTest.java
      • Http2MultiplexTest.java
  • codec-http3/src/test/java/io/netty/handler/codec/http3
    • Http3FrameCodecTest.java
  • codec-http/src
    • main/java/io/netty/handler/codec
      • http
        • HttpObjectAggregator.java
        • websocketx
          • WebSocketClientHandshaker.java
          • WebSocketClientProtocolHandshakeHandler.java
          • WebSocketServerHandshaker.java
          • WebSocketServerProtocolHandshakeHandler.java
      • spdy
        • SpdyFrameCodec.java
        • SpdySessionHandler.java
    • test/java/io/netty/handler/codec/http
      • HttpClientCodecTest.java
      • websocketx
        • WebSocketHandshakeHandOverTest.java
  • codec-native-quic/src/test/java/io/netty/handler/codec/quic
    • QuicStreamShutdownTest.java
  • common/src
    • main/java/io/netty/util/concurrent
      • GenericFutureListener.java
      • MultithreadEventExecutorGroup.java
      • PromiseAggregator.java
      • PromiseNotifier.java
      • UnaryPromiseNotifier.java
    • test/java/io/netty/util/concurrent
      • DefaultPromiseTest.java
      • UnorderedThreadPoolEventExecutorTest.java
  • example/src/main/java/io/netty/example
    • factorial
      • FactorialClientHandler.java
    • haproxy
      • HAProxyHandler.java
    • redis
      • RedisClient.java
    • securechat
      • SecureChatServerHandler.java
    • socksproxy
      • SocksServerConnectHandler.java
    • uptime
      • UptimeClient.java
  • handler-proxy/src
    • main/java/io/netty/handler/proxy
      • ProxyHandler.java
    • test/java/io/netty/handler/proxy
      • ProxyHandlerTest.java
      • ProxyServer.java
  • handler-ssl-ocsp/src/main/java/io/netty/handler/ssl/ocsp
    • OcspClient.java
    • OcspServerCertificateValidator.java
  • handler/src
    • main/java/io/netty/handler
      • ipfilter
        • UniqueIpFilter.java
      • ssl
        • SslHandler.java
      • timeout
        • IdleStateHandler.java
        • WriteTimeoutHandler.java
    • test/java/io/netty/handler
      • flush
        • FlushConsolidationHandlerTest.java
      • ssl
        • ParameterizedSslHandlerTest.java
        • RenegotiateTest.java
        • SslHandlerTest.java
      • stream
        • ChunkedWriteHandlerTest.java
  • resolver-dns/src/main/java/io/netty/resolver/dns
    • InflightNameResolver.java
  • resolver/src/main/java/io/netty/resolver
    • CompositeNameResolver.java
    • InetSocketAddressResolver.java
    • RoundRobinInetAddressResolver.java
  • testsuite/src/main/java/io/netty/testsuite/transport/socket
    • SocketBufReleaseTest.java
    • SocketHalfClosedTest.java
    • SocketSslLargeCertificateTest.java
  • transport-classes-epoll/src/main/java/io/netty/channel/epoll
    • EpollSocketChannel.java
  • transport-classes-io_uring/src/main/java/io/netty/channel/uring
    • IoUringSocketChannel.java
  • transport-classes-kqueue/src/main/java/io/netty/channel/kqueue
    • AbstractKQueueStreamChannel.java
    • KQueueSocketChannel.java
  • transport-native-epoll/src/test/java/io/netty/channel/epoll
    • EpollDomainSocketFdTest.java
  • transport-native-io_uring/src/test/java/io/netty/channel/uring
    • IoUringDomainSocketFdTest.java
  • transport-native-kqueue/src/test/java/io/netty/channel/kqueue
    • KQueueDomainSocketFdTest.java
  • transport/src
    • main/java/io/netty
      • bootstrap
        • AbstractBootstrap.java
        • Bootstrap.java
        • ServerBootstrap.java
      • channel
        • AbstractChannel.java
        • DelegatingChannelPromiseNotifier.java
        • embedded
          • EmbeddedChannel.java
        • group
          • DefaultChannelGroup.java
          • DefaultChannelGroupFuture.java
        • local
          • LocalServerChannel.java
        • pool
          • AbstractChannelPoolMap.java
          • FixedChannelPool.java
          • SimpleChannelPool.java
        • socket/nio
          • NioSocketChannel.java
    • test/java/io/netty/channel
      • CoalescingBufferQueueTest.java
      • ReentrantChannelTest.java
      • SingleThreadEventLoopTest.java
      • embedded
        • EmbeddedChannelTest.java
      • local
        • LocalChannelTest.java
      • pool
        • AbstractChannelPoolMapTest.java
        • FixedChannelPoolTest.java
      • socket/nio
        • NioSocketChannelTest.java

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎codec-base/src/main/java/io/netty/handler/codec/MessageAggregator.java‎

Copy file name to clipboardExpand all lines: codec-base/src/main/java/io/netty/handler/codec/MessageAggregator.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ protected void decode(final ChannelHandlerContext ctx, I msg, List<Object> out)
225225
if (listener == null) {
226226
continueResponseWriteListener = listener = new ChannelFutureListener() {
227227
@Override
228-
public void operationComplete(ChannelFuture future) throws Exception {
228+
public void operationComplete(ChannelFuture future) {
229229
if (!future.isSuccess()) {
230230
ctx.fireExceptionCaught(future.cause());
231231
}
Collapse file

‎codec-compression/src/main/java/io/netty/handler/codec/compression/EncoderUtil.java‎

Copy file name to clipboardExpand all lines: codec-compression/src/main/java/io/netty/handler/codec/compression/EncoderUtil.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public void run() {
3939

4040
finishFuture.addListener(new ChannelFutureListener() {
4141
@Override
42-
public void operationComplete(ChannelFuture f) {
42+
public void operationComplete(ChannelFuture f) {
4343
// Cancel the scheduled timeout.
4444
future.cancel(true);
4545
if (!promise.isDone()) {
Collapse file

‎codec-compression/src/test/java/io/netty/handler/codec/compression/Lz4FrameEncoderTest.java‎

Copy file name to clipboardExpand all lines: codec-compression/src/test/java/io/netty/handler/codec/compression/Lz4FrameEncoderTest.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ public void run() {
282282
finalClientChannel.writeAndFlush(buf.writerIndex(buf.writerIndex() + size))
283283
.addListener(new ChannelFutureListener() {
284284
@Override
285-
public void operationComplete(ChannelFuture future) throws Exception {
285+
public void operationComplete(ChannelFuture future) {
286286
try {
287287
writeFailCauseRef.set(future.cause());
288288
} finally {
Collapse file

‎codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectAggregator.java‎

Copy file name to clipboardExpand all lines: codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectAggregator.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ protected void handleOversizedMessage(final ChannelHandlerContext ctx, HttpMessa
251251
ChannelFuture future = ctx.writeAndFlush(TOO_LARGE_CLOSE.retainedDuplicate());
252252
future.addListener(new ChannelFutureListener() {
253253
@Override
254-
public void operationComplete(ChannelFuture future) throws Exception {
254+
public void operationComplete(ChannelFuture future) {
255255
if (!future.isSuccess()) {
256256
logger.debug("Failed to send a 413 Request Entity Too Large.", future.cause());
257257
}
@@ -261,7 +261,7 @@ public void operationComplete(ChannelFuture future) throws Exception {
261261
} else {
262262
ctx.writeAndFlush(TOO_LARGE.retainedDuplicate()).addListener(new ChannelFutureListener() {
263263
@Override
264-
public void operationComplete(ChannelFuture future) throws Exception {
264+
public void operationComplete(ChannelFuture future) {
265265
if (!future.isSuccess()) {
266266
logger.debug("Failed to send a 413 Request Entity Too Large.", future.cause());
267267
ctx.close();
Collapse file

‎codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketClientHandshaker.java‎

Copy file name to clipboardExpand all lines: codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketClientHandshaker.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ public void run() {
708708

709709
channel.closeFuture().addListener(new ChannelFutureListener() {
710710
@Override
711-
public void operationComplete(ChannelFuture future) throws Exception {
711+
public void operationComplete(ChannelFuture future) {
712712
forceCloseFuture.cancel(false);
713713
}
714714
});
Collapse file

‎codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketClientProtocolHandshakeHandler.java‎

Copy file name to clipboardExpand all lines: codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketClientProtocolHandshakeHandler.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public void channelActive(final ChannelHandlerContext ctx) throws Exception {
5757
super.channelActive(ctx);
5858
handshaker.handshake(ctx.channel()).addListener(new ChannelFutureListener() {
5959
@Override
60-
public void operationComplete(ChannelFuture future) throws Exception {
60+
public void operationComplete(ChannelFuture future) {
6161
if (!future.isSuccess()) {
6262
handshakePromise.tryFailure(future.cause());
6363
ctx.fireExceptionCaught(future.cause());
@@ -127,7 +127,7 @@ public void run() {
127127
// Cancel the handshake timeout when handshake is finished.
128128
localHandshakePromise.addListener(new FutureListener<Void>() {
129129
@Override
130-
public void operationComplete(Future<Void> f) throws Exception {
130+
public void operationComplete(Future<Void> f) {
131131
timeoutFuture.cancel(false);
132132
}
133133
});
Collapse file

‎codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketServerHandshaker.java‎

Copy file name to clipboardExpand all lines: codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketServerHandshaker.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ public final ChannelFuture handshake(Channel channel, FullHttpRequest req,
230230
}
231231
channel.writeAndFlush(response).addListener(new ChannelFutureListener() {
232232
@Override
233-
public void operationComplete(ChannelFuture future) throws Exception {
233+
public void operationComplete(ChannelFuture future) {
234234
if (future.isSuccess()) {
235235
ChannelPipeline p = future.channel().pipeline();
236236
p.remove(encoderName);
Collapse file

‎codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandshakeHandler.java‎

Copy file name to clipboardExpand all lines: codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketServerProtocolHandshakeHandler.java
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import io.netty.handler.codec.http.HttpHeaderNames;
2525
import io.netty.handler.codec.http.HttpObject;
2626
import io.netty.handler.codec.http.HttpRequest;
27-
import io.netty.handler.codec.http.HttpResponse;
2827
import io.netty.handler.codec.http.websocketx.WebSocketServerProtocolHandler.ServerHandshakeStateEvent;
2928
import io.netty.handler.ssl.SslHandler;
3029
import io.netty.util.ReferenceCountUtil;
@@ -33,7 +32,6 @@
3332

3433
import java.util.concurrent.TimeUnit;
3534

36-
import static io.netty.handler.codec.http.HttpUtil.*;
3735
import static io.netty.util.internal.ObjectUtil.*;
3836

3937
/**
Collapse file

‎codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyFrameCodec.java‎

Copy file name to clipboardExpand all lines: codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyFrameCodec.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public void handlerAdded(ChannelHandlerContext ctx) throws Exception {
151151
this.ctx = ctx;
152152
ctx.channel().closeFuture().addListener(new ChannelFutureListener() {
153153
@Override
154-
public void operationComplete(ChannelFuture future) throws Exception {
154+
public void operationComplete(ChannelFuture future) {
155155
spdyHeaderBlockDecoder.end();
156156
spdyHeaderBlockEncoder.end();
157157
}
Collapse file

‎codec-http/src/main/java/io/netty/handler/codec/spdy/SpdySessionHandler.java‎

Copy file name to clipboardExpand all lines: codec-http/src/main/java/io/netty/handler/codec/spdy/SpdySessionHandler.java
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ private void handleOutboundMessage(ChannelHandlerContext ctx, Object msg, Channe
502502
final ChannelHandlerContext context = ctx;
503503
ctx.write(partialDataFrame).addListener(new ChannelFutureListener() {
504504
@Override
505-
public void operationComplete(ChannelFuture future) throws Exception {
505+
public void operationComplete(ChannelFuture future) {
506506
if (!future.isSuccess()) {
507507
issueSessionError(context, SpdySessionStatus.INTERNAL_ERROR);
508508
}
@@ -519,7 +519,7 @@ public void operationComplete(ChannelFuture future) throws Exception {
519519
final ChannelHandlerContext context = ctx;
520520
promise.addListener(new ChannelFutureListener() {
521521
@Override
522-
public void operationComplete(ChannelFuture future) throws Exception {
522+
public void operationComplete(ChannelFuture future) {
523523
if (!future.isSuccess()) {
524524
issueSessionError(context, SpdySessionStatus.INTERNAL_ERROR);
525525
}
@@ -779,7 +779,7 @@ private void updateSendWindowSize(final ChannelHandlerContext ctx, int streamId,
779779
// Close the session on write failures that leave the transfer window in a corrupt state.
780780
ctx.writeAndFlush(partialDataFrame).addListener(new ChannelFutureListener() {
781781
@Override
782-
public void operationComplete(ChannelFuture future) throws Exception {
782+
public void operationComplete(ChannelFuture future) {
783783
if (!future.isSuccess()) {
784784
issueSessionError(ctx, SpdySessionStatus.INTERNAL_ERROR);
785785
}
@@ -800,7 +800,7 @@ public void operationComplete(ChannelFuture future) throws Exception {
800800
// Close the session on write failures that leave the transfer window in a corrupt state.
801801
ctx.writeAndFlush(spdyDataFrame, pendingWrite.promise).addListener(new ChannelFutureListener() {
802802
@Override
803-
public void operationComplete(ChannelFuture future) throws Exception {
803+
public void operationComplete(ChannelFuture future) {
804804
if (!future.isSuccess()) {
805805
issueSessionError(ctx, SpdySessionStatus.INTERNAL_ERROR);
806806
}
@@ -847,7 +847,7 @@ private static final class ClosingChannelFutureListener implements ChannelFuture
847847
}
848848

849849
@Override
850-
public void operationComplete(ChannelFuture sentGoAwayFuture) throws Exception {
850+
public void operationComplete(ChannelFuture sentGoAwayFuture) {
851851
ctx.close(promise);
852852
}
853853
}

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.