qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgodf...@apache.org
Subject svn commit: r1236332 - /qpid/trunk/qpid/java/broker/src/main/java/org/apache/qpid/server/store/DerbyMessageStore.java
Date Thu, 26 Jan 2012 18:03:29 GMT
Author: rgodfrey
Date: Thu Jan 26 18:03:29 2012
New Revision: 1236332

URL: http://svn.apache.org/viewvc?rev=1236332&view=rev
Log:
QPID-946, QPID-2379 : code review - move statements inside try block

Modified:
    qpid/trunk/qpid/java/broker/src/main/java/org/apache/qpid/server/store/DerbyMessageStore.java

Modified: qpid/trunk/qpid/java/broker/src/main/java/org/apache/qpid/server/store/DerbyMessageStore.java
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/broker/src/main/java/org/apache/qpid/server/store/DerbyMessageStore.java?rev=1236332&r1=1236331&r2=1236332&view=diff
==============================================================================
--- qpid/trunk/qpid/java/broker/src/main/java/org/apache/qpid/server/store/DerbyMessageStore.java
(original)
+++ qpid/trunk/qpid/java/broker/src/main/java/org/apache/qpid/server/store/DerbyMessageStore.java
Thu Jan 26 18:03:29 2012
@@ -650,12 +650,12 @@ public class DerbyMessageStore implement
             conn = newAutoCommitConnection();
 
             PreparedStatement stmt = conn.prepareStatement(SELECT_ALL_FROM_BRIDGES);
-            stmt.setLong(1, linkId.getLeastSignificantBits());
-            stmt.setLong(2, linkId.getMostSignificantBits());
-
 
             try
             {
+                stmt.setLong(1, linkId.getLeastSignificantBits());
+                stmt.setLong(2, linkId.getMostSignificantBits());
+
                 ResultSet rs = stmt.executeQuery();
 
                 try



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org


Mime
View raw message