activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject [activemq] branch master updated: AMQ-7298 - use final modifier in test to preserve older jdk builds
Date Wed, 04 Sep 2019 12:06:09 GMT
This is an automated email from the ASF dual-hosted git repository.

gtully pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/activemq.git


The following commit(s) were added to refs/heads/master by this push:
     new f155e92  AMQ-7298 - use final modifier in test to preserve older jdk builds
f155e92 is described below

commit f155e92e58da5882ff83414cbe31abad6e4e2e26
Author: gtully <gary.tully@gmail.com>
AuthorDate: Wed Sep 4 13:05:42 2019 +0100

    AMQ-7298 - use final modifier in test to preserve older jdk builds
---
 .../transport/failover/FailoverDurableSubTransactionTest.java        | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverDurableSubTransactionTest.java
b/activemq-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverDurableSubTransactionTest.java
index cc5e6da..e859a9c 100644
--- a/activemq-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverDurableSubTransactionTest.java
+++ b/activemq-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverDurableSubTransactionTest.java
@@ -297,9 +297,8 @@ public class FailoverDurableSubTransactionTest {
         final Session receiveSession = connection.createSession(true, Session.SESSION_TRANSACTED);
         consumer = receiveSession.createDurableSubscriber(destination, "DS");
 
-        AtomicBoolean success = new AtomicBoolean(false);
-
-        HashSet<Integer> dupCheck = new HashSet<Integer>();
+        final AtomicBoolean success = new AtomicBoolean(false);
+        final HashSet<Integer> dupCheck = new HashSet<Integer>();
         final AtomicInteger receivedCount = new AtomicInteger();
         consumer.setMessageListener(new MessageListener() {
             @Override


Mime
View raw message