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/ReplicationTestCase.java | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/opendj-server-legacy/src/test/java/org/opends/server/replication/ReplicationTestCase.java b/opendj-server-legacy/src/test/java/org/opends/server/replication/ReplicationTestCase.java
index 9c08f76..7ec22c9 100644
--- a/opendj-server-legacy/src/test/java/org/opends/server/replication/ReplicationTestCase.java
+++ b/opendj-server-legacy/src/test/java/org/opends/server/replication/ReplicationTestCase.java
@@ -112,9 +112,9 @@
protected InternalClientConnection connection;
/** Created entries that will be deleted on class cleanup. */
- protected final Set<DN> entriesToCleanup = new HashSet<DN>();
+ protected final Set<DN> entriesToCleanup = new HashSet<>();
/** Created config entries that will be deleted on class cleanup. */
- protected final Set<DN> configEntriesToCleanup = new HashSet<DN>();
+ protected final Set<DN> configEntriesToCleanup = new HashSet<>();
/** Replicated suffix (replication domain). */
protected Entry synchroServerEntry;
@@ -616,7 +616,7 @@
protected List<Modification> generatemods(String attrName, String attrValue)
{
Attribute attr = Attributes.create(attrName, attrValue);
- List<Modification> mods = new ArrayList<Modification>();
+ List<Modification> mods = new ArrayList<>();
Modification mod = new Modification(ModificationType.REPLACE, attr);
mods.add(mod);
return mods;
@@ -876,7 +876,7 @@
final int timeOut = 5000; // 5 seconds max to wait for the desired message
final long startTime = System.currentTimeMillis();
- final List<ReplicationMsg> msgs = new ArrayList<ReplicationMsg>();
+ final List<ReplicationMsg> msgs = new ArrayList<>();
boolean timedOut = false;
while (!timedOut)
{
--
Gitblit v1.10.0