summaryrefslogtreecommitdiff
path: root/qpid/java
diff options
context:
space:
mode:
authorRobert Godfrey <rgodfrey@apache.org>2012-01-26 18:03:29 +0000
committerRobert Godfrey <rgodfrey@apache.org>2012-01-26 18:03:29 +0000
commit3b99038cf792d6816b59d83e02d1de3145e7474e (patch)
treecd49f61916c4c14fa2bbcb36ce052df579735ab2 /qpid/java
parent1be46fdd450cdd460cb24652b849552cefecfe59 (diff)
downloadqpid-python-3b99038cf792d6816b59d83e02d1de3145e7474e.tar.gz
QPID-946, QPID-2379 : code review - move statements inside try block
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1236332 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java')
-rw-r--r--qpid/java/broker/src/main/java/org/apache/qpid/server/store/DerbyMessageStore.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/qpid/java/broker/src/main/java/org/apache/qpid/server/store/DerbyMessageStore.java b/qpid/java/broker/src/main/java/org/apache/qpid/server/store/DerbyMessageStore.java
index 45083c1595..d786309993 100644
--- a/qpid/java/broker/src/main/java/org/apache/qpid/server/store/DerbyMessageStore.java
+++ b/qpid/java/broker/src/main/java/org/apache/qpid/server/store/DerbyMessageStore.java
@@ -650,12 +650,12 @@ public class DerbyMessageStore implements MessageStore, DurableConfigurationStor
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