db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oyste...@apache.org
Subject svn commit: r620499 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/services/replication/buffer/ReplicationLogBuffer.java
Date Mon, 11 Feb 2008 14:54:41 GMT
Author: oysteing
Date: Mon Feb 11 06:54:39 2008
New Revision: 620499

URL: http://svn.apache.org/viewvc?rev=620499&view=rev
Log:
DERBY-3359: Make mf final and some other minor clean-up.


Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/impl/services/replication/buffer/ReplicationLogBuffer.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/services/replication/buffer/ReplicationLogBuffer.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/services/replication/buffer/ReplicationLogBuffer.java?rev=620499&r1=620498&r2=620499&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/services/replication/buffer/ReplicationLogBuffer.java
(original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/services/replication/buffer/ReplicationLogBuffer.java
Mon Feb 11 06:54:39 2008
@@ -23,7 +23,6 @@
 
 import org.apache.derby.iapi.services.sanity.SanityManager;
 
-import java.util.Arrays;
 import java.util.NoSuchElementException;
 import java.util.LinkedList;
 
@@ -88,7 +87,7 @@
 
     // used to notify the master controller that a log buffer element is full 
     // and work needs to be done.
-    private MasterFactory mf;
+    private final MasterFactory mf;
 
     /**
      * Class constructor specifies the number of buffer elements
@@ -253,8 +252,9 @@
             if (validOutBuffer) {
                 System.arraycopy(outBufferData, 0, b, 0, getSize());
                 return b;
-            } else
+            } else {
                 throw new NoSuchElementException();
+            }
         }
     }
 



Mime
View raw message