From d504d78cb1bf92be2ec3a7327a59525cc8c26cfa Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Sat, 13 Oct 2012 09:21:40 +0200 Subject: [PATCH] Fix checkstyle --- .../main/java/io/netty/handler/ssl/SslHandler.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/handler/src/main/java/io/netty/handler/ssl/SslHandler.java b/handler/src/main/java/io/netty/handler/ssl/SslHandler.java index 5b898866b7..d7e1770efb 100644 --- a/handler/src/main/java/io/netty/handler/ssl/SslHandler.java +++ b/handler/src/main/java/io/netty/handler/ssl/SslHandler.java @@ -300,9 +300,9 @@ public class SslHandler } SSLException e = new SSLException("handshake timed out"); - if ( future.setFailure(e) ){ - ctx.fireExceptionCaught(e); - ctx.close(); + if (future.setFailure(e)) { + ctx.fireExceptionCaught(e); + ctx.close(); } } }, handshakeTimeoutMillis, TimeUnit.MILLISECONDS); @@ -321,9 +321,9 @@ public class SslHandler handshakeFutures.add(future); flush(ctx, ctx.newFuture()); } catch (Exception e) { - if ( future.setFailure(e) ) { - ctx.fireExceptionCaught(e); - ctx.close(); + if (future.setFailure(e)) { + ctx.fireExceptionCaught(e); + ctx.close(); } } }