[hornetq-commits] JBoss hornetq SVN: r12083 - trunk/hornetq-journal/src/main/java/org/hornetq/core/journal/impl.

do-not-reply at jboss.org do-not-reply at jboss.org
Fri Feb 3 08:28:28 EST 2012


Author: borges
Date: 2012-02-03 08:28:27 -0500 (Fri, 03 Feb 2012)
New Revision: 12083

Modified:
   trunk/hornetq-journal/src/main/java/org/hornetq/core/journal/impl/TimedBuffer.java
Log:
Remove spurious null check.

Modified: trunk/hornetq-journal/src/main/java/org/hornetq/core/journal/impl/TimedBuffer.java
===================================================================
--- trunk/hornetq-journal/src/main/java/org/hornetq/core/journal/impl/TimedBuffer.java	2012-02-03 13:28:11 UTC (rev 12082)
+++ trunk/hornetq-journal/src/main/java/org/hornetq/core/journal/impl/TimedBuffer.java	2012-02-03 13:28:27 UTC (rev 12083)
@@ -293,7 +293,7 @@
       flush(false);
    }
 
-   /** 
+   /**
     * force means the Journal is moving to a new file. Any pending write need to be done immediately
     * or data could be lost
     * */
@@ -323,10 +323,7 @@
 
             bufferToFlush.put(buffer.toByteBuffer().array(), 0, pos);
 
-            if (bufferToFlush != null)
-            {
-               bufferObserver.flushBuffer(bufferToFlush, pendingSync, callbacks);
-            }
+            bufferObserver.flushBuffer(bufferToFlush, pendingSync, callbacks);
 
             if (spinning)
             {



More information about the hornetq-commits mailing list