BUG 2245 - Fixed Collapsible If Statements 56/12256/2
authorMarian Adamjak <marian.adamjak@pantheon.sk>
Mon, 27 Oct 2014 10:11:06 +0000 (11:11 +0100)
committerMarian Adamjak <marian.adamjak@pantheon.sk>
Mon, 27 Oct 2014 13:23:57 +0000 (14:23 +0100)
Change-Id: Idee4d65869ed7041fde16706b4fb8bea2f77bfdd
Signed-off-by: Marian Adamjak <marian.adamjak@pantheon.sk>
openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/connection/ChannelOutboundQueue.java

index cc7abcae4ab12f288df027b8cd49966f7069b56f..2d50ff2bf818dae8fd65e891622f515a8afa4436 100644 (file)
@@ -202,12 +202,10 @@ final class ChannelOutboundQueue extends ChannelInboundHandlerAdapter {
              *      should be able to perform dynamic adjustments here.
              *      is that additional complexity needed, though?
              */
-            if ((messages % WORKTIME_RECHECK_MSGS) == 0) {
-                if (System.nanoTime() >= deadline) {
-                    LOG.trace("Exceeded allotted work time {}us",
-                            TimeUnit.NANOSECONDS.toMicros(maxWorkTime));
-                    break;
-                }
+            if ((messages % WORKTIME_RECHECK_MSGS) == 0 && System.nanoTime() >= deadline) {
+                LOG.trace("Exceeded allotted work time {}us",
+                        TimeUnit.NANOSECONDS.toMicros(maxWorkTime));
+                break;
             }
         }