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

do-not-reply at jboss.org do-not-reply at jboss.org
Fri Jan 6 08:03:37 EST 2012


Author: borges
Date: 2012-01-06 08:03:36 -0500 (Fri, 06 Jan 2012)
New Revision: 11990

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-01-06 13:03:20 UTC (rev 11989)
+++ trunk/hornetq-journal/src/main/java/org/hornetq/core/journal/impl/TimedBuffer.java	2012-01-06 13:03:36 UTC (rev 11990)
@@ -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