From a89f7014aeb71dba5c94404dfea7eb89e7eeee74 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Wed, 08 Jul 2015 06:48:02 +0000
Subject: [PATCH] AutoRefactor'ed Use Diamond Operator
---
opendj-server-legacy/src/test/java/org/opends/server/replication/plugin/GroupIdHandshakeTest.java | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/opendj-server-legacy/src/test/java/org/opends/server/replication/plugin/GroupIdHandshakeTest.java b/opendj-server-legacy/src/test/java/org/opends/server/replication/plugin/GroupIdHandshakeTest.java
index c31661f..f058b41 100644
--- a/opendj-server-legacy/src/test/java/org/opends/server/replication/plugin/GroupIdHandshakeTest.java
+++ b/opendj-server-legacy/src/test/java/org/opends/server/replication/plugin/GroupIdHandshakeTest.java
@@ -206,7 +206,7 @@
*/
private SortedSet<String> createRSListForTestCase(String testCase)
{
- SortedSet<String> replServers = new TreeSet<String>();
+ SortedSet<String> replServers = new TreeSet<>();
if (testCase.equals("testRSWithSameGroupIds"))
{
@@ -231,7 +231,7 @@
private ReplicationServer createReplicationServer(int serverId, int groupId,
String testCase) throws Exception
{
- SortedSet<String> replServers = new TreeSet<String>();
+ SortedSet<String> replServers = new TreeSet<>();
int port = -1;
if (serverId == RS1_ID)
{
@@ -489,7 +489,7 @@
/**
* Change group id of RS3 to 1
*/
- SortedSet<String> otherReplServers = new TreeSet<String>();
+ SortedSet<String> otherReplServers = new TreeSet<>();
otherReplServers.add("localhost:" + rs1Port);
otherReplServers.add("localhost:" + rs2Port);
String dir = "groupIdHandshakeTest" + RS3_ID + testCase + "Db";
@@ -501,7 +501,7 @@
/**
* Change group id of RS1 to 3: DS1 and DS2 should reconnect to RS3
*/
- otherReplServers = new TreeSet<String>();
+ otherReplServers = new TreeSet<>();
otherReplServers.add("localhost:" + rs2Port);
otherReplServers.add("localhost:" + rs3Port);
dir = "groupIdHandshakeTest" + RS1_ID + testCase + "Db";
--
Gitblit v1.10.0