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/ServerState.java |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/replication/common/ServerState.java b/opendj-server-legacy/src/main/java/org/opends/server/replication/common/ServerState.java
index 0d41166..51536bd 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/replication/common/ServerState.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/replication/common/ServerState.java
@@ -46,8 +46,7 @@
 {
 
   /** Associates a serverId with a CSN. */
-  private final ConcurrentMap<Integer, CSN> serverIdToCSN =
-      new ConcurrentSkipListMap<Integer, CSN>();
+  private final ConcurrentMap<Integer, CSN> serverIdToCSN = new ConcurrentSkipListMap<>();
   /**
    * Whether the state has been saved to persistent storage. It starts at true,
    * and moves to false when an update is made to the current object.
@@ -193,7 +192,7 @@
    */
   public Set<String> toStringSet()
   {
-    final Set<String> result = new HashSet<String>();
+    final Set<String> result = new HashSet<>();
     for (CSN change : serverIdToCSN.values())
     {
       Date date = new Date(change.getTime());
@@ -210,7 +209,7 @@
    */
   public ArrayList<ByteString> toASN1ArrayList()
   {
-    final ArrayList<ByteString> values = new ArrayList<ByteString>(0);
+    final ArrayList<ByteString> values = new ArrayList<>(0);
     for (CSN csn : serverIdToCSN.values())
     {
       values.add(ByteString.valueOf(csn.toString()));
@@ -296,7 +295,7 @@
   {
     // copy to protect from concurrent updates
     // that could change the number of elements in the Map
-    return new HashMap<Integer, CSN>(serverIdToCSN);
+    return new HashMap<>(serverIdToCSN);
   }
 
   /** {@inheritDoc} */

--
Gitblit v1.10.0