activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject [2/2] activemq-artemis git commit: Remove redundant type arguments
Date Tue, 22 Dec 2015 02:57:25 GMT
Remove redundant type arguments


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/2cb74839
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/2cb74839
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/2cb74839

Branch: refs/heads/master
Commit: 2cb74839f9baa197a1311bf52af2dee945a760a7
Parents: 826da3b
Author: Ville Skyttä <ville.skytta@iki.fi>
Authored: Mon Dec 21 17:32:24 2015 +0200
Committer: Clebert Suconic <clebertsuconic@apache.org>
Committed: Mon Dec 21 21:57:16 2015 -0500

----------------------------------------------------------------------
 .../artemis/tests/extras/byteman/ClusteredBridgeReconnectTest.java | 2 +-
 .../extras/jms/ra/MDBMultipleHandlersServerDisconnectTest.java     | 2 +-
 .../artemis/tests/integration/management/QueueControlTest.java     | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/2cb74839/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/byteman/ClusteredBridgeReconnectTest.java
----------------------------------------------------------------------
diff --git a/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/byteman/ClusteredBridgeReconnectTest.java
b/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/byteman/ClusteredBridgeReconnectTest.java
index 3874937..e7ab0ce 100644
--- a/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/byteman/ClusteredBridgeReconnectTest.java
+++ b/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/byteman/ClusteredBridgeReconnectTest.java
@@ -44,7 +44,7 @@ import org.junit.runner.RunWith;
 @RunWith(BMUnitRunner.class)
 public class ClusteredBridgeReconnectTest extends ClusterTestBase {
 
-   static ThreadLocal<Boolean> inConnect = new ThreadLocal<Boolean>();
+   static ThreadLocal<Boolean> inConnect = new ThreadLocal<>();
 
    public static void enterConnect() {
       inConnect.set(Boolean.TRUE);

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/2cb74839/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/jms/ra/MDBMultipleHandlersServerDisconnectTest.java
----------------------------------------------------------------------
diff --git a/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/jms/ra/MDBMultipleHandlersServerDisconnectTest.java
b/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/jms/ra/MDBMultipleHandlersServerDisconnectTest.java
index 063a254..2d263c0 100644
--- a/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/jms/ra/MDBMultipleHandlersServerDisconnectTest.java
+++ b/tests/extra-tests/src/test/java/org/apache/activemq/artemis/tests/extras/jms/ra/MDBMultipleHandlersServerDisconnectTest.java
@@ -366,7 +366,7 @@ public class MDBMultipleHandlersServerDisconnectTest extends ActiveMQRATestBase
 
    private List<ServerSession> lookupServerSessions(String parameter, int numberOfSessions)
{
       long timeout = System.currentTimeMillis() + 50000;
-      List<ServerSession> serverSessions = new LinkedList<ServerSession>();
+      List<ServerSession> serverSessions = new LinkedList<>();
       do {
          if (!serverSessions.isEmpty()) {
             System.err.println("Retry on serverSessions!!! currently with " + serverSessions.size());

http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/2cb74839/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/QueueControlTest.java
----------------------------------------------------------------------
diff --git a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/QueueControlTest.java
b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/QueueControlTest.java
index bae0a1c..275495f 100644
--- a/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/QueueControlTest.java
+++ b/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/management/QueueControlTest.java
@@ -1305,7 +1305,7 @@ public class QueueControlTest extends ManagementTestBase {
 
       ClientConsumer cons = session.createConsumer(queue);
       session.start();
-      LinkedList<ClientMessage> msgs = new LinkedList<ClientMessage>();
+      LinkedList<ClientMessage> msgs = new LinkedList<>();
       for (int i = 0; i < 50; i++) {
          ClientMessage msg = cons.receive(1000);
          msgs.add(msg);


Mime
View raw message