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/main/java/org/opends/server/replication/common/MultiDomainServerState.java | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/replication/common/MultiDomainServerState.java b/opendj-server-legacy/src/main/java/org/opends/server/replication/common/MultiDomainServerState.java
index 1271271..9491a87 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/replication/common/MultiDomainServerState.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/replication/common/MultiDomainServerState.java
@@ -64,7 +64,7 @@
*/
public MultiDomainServerState()
{
- list = new ConcurrentSkipListMap<DN, ServerState>();
+ list = new ConcurrentSkipListMap<>();
}
/**
@@ -74,8 +74,7 @@
*/
public MultiDomainServerState(String mdss) throws DirectoryException
{
- list = new ConcurrentSkipListMap<DN, ServerState>(
- splitGenStateToServerStates(mdss));
+ list = new ConcurrentSkipListMap<>(splitGenStateToServerStates(mdss));
}
/**
@@ -178,7 +177,7 @@
{
return Collections.emptyMap();
}
- final Map<DN, List<CSN>> map = new HashMap<DN, List<CSN>>();
+ final Map<DN, List<CSN>> map = new HashMap<>();
for (Entry<DN, ServerState> entry : list.entrySet())
{
final List<CSN> l = entry.getValue().getSnapshot();
@@ -383,7 +382,7 @@
private static Map<DN, ServerState> splitGenStateToServerStates(
String multiDomainServerState) throws DirectoryException
{
- Map<DN, ServerState> startStates = new TreeMap<DN, ServerState>();
+ Map<DN, ServerState> startStates = new TreeMap<>();
if (multiDomainServerState != null && multiDomainServerState.length() > 0)
{
try
--
Gitblit v1.10.0