Remove redundant type arguments
This commit is contained in:
parent
826da3b095
commit
2cb74839f9
|
@ -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);
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue