activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r1026545 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/kahadb/MessageDatabase.java
Date Sat, 23 Oct 2010 02:13:58 GMT
Author: gtully
Date: Sat Oct 23 02:13:58 2010
New Revision: 1026545

URL: http://svn.apache.org/viewvc?rev=1026545&view=rev
Log:
fix xbean qdox parser error with static initialiser, use block instead

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/kahadb/MessageDatabase.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/kahadb/MessageDatabase.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/kahadb/MessageDatabase.java?rev=1026545&r1=1026544&r2=1026545&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/kahadb/MessageDatabase.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/kahadb/MessageDatabase.java
Sat Oct 23 02:13:58 2010
@@ -88,7 +88,10 @@ public class MessageDatabase extends Ser
     public static final String PROPERTY_LOG_SLOW_ACCESS_TIME = "org.apache.activemq.store.kahadb.LOG_SLOW_ACCESS_TIME";
     public static final int LOG_SLOW_ACCESS_TIME = Integer.parseInt(System.getProperty(PROPERTY_LOG_SLOW_ACCESS_TIME,
"0"));
 
-    protected static final Buffer UNMATCHED = new Buffer(new byte[]{});
+    protected static final Buffer UNMATCHED;
+    static {
+        UNMATCHED = new Buffer(new byte[]{});
+    }
     private static final Log LOG = LogFactory.getLog(MessageDatabase.class);
     private static final int DEFAULT_DATABASE_LOCKED_WAIT_DELAY = 10 * 1000;
 
@@ -1039,7 +1042,7 @@ public class MessageDatabase extends Ser
                 Long prev = sd.subscriptionAcks.put(tx, subscriptionKey, sequence);
 
                 if (command.getAck() == UNMATCHED) {
-                    sd.subscriptionAcks.put(tx, subscriptionKey, prev);    
+                    sd.subscriptionAcks.put(tx, subscriptionKey, prev);
                 }
                 // The following method handles deleting un-referenced messages.
                 removeAckLocation(tx, sd, subscriptionKey, prev);



Mime
View raw message