Simplify boolean expressions
[netconf.git] / netconf / netconf-netty-util / src / main / java / org / opendaylight / netconf / nettyutil / handler / ssh / client / AsyncSshHandlerWriter.java
index d116b99f828ac7e0bab6aba2e0f6521dafb22c84..35f5d972c053ea07a861cf71640c9866f45f0177 100644 (file)
@@ -67,7 +67,7 @@ public final class AsyncSshHandlerWriter implements AutoCloseable {
                 promise.setFailure(new IllegalStateException("Channel closed"));
             } else {
                 final ByteBuf byteBufMsg = (ByteBuf) msg;
-                if (pending.isEmpty() == false) {
+                if (!pending.isEmpty()) {
                     queueRequest(ctx, byteBufMsg, promise);
                     return;
                 }
@@ -129,7 +129,7 @@ public final class AsyncSshHandlerWriter implements AutoCloseable {
 
         } catch (final WritePendingException e) {
 
-            if (wasPending == false) {
+            if (!wasPending) {
                 queueRequest(ctx, byteBufMsg, promise);
             }
         }