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/admin/client/ldap/MockLDAPConnection.java | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/opendj-server-legacy/src/test/java/org/opends/server/admin/client/ldap/MockLDAPConnection.java b/opendj-server-legacy/src/test/java/org/opends/server/admin/client/ldap/MockLDAPConnection.java
index 37dfaa0..b713a56 100644
--- a/opendj-server-legacy/src/test/java/org/opends/server/admin/client/ldap/MockLDAPConnection.java
+++ b/opendj-server-legacy/src/test/java/org/opends/server/admin/client/ldap/MockLDAPConnection.java
@@ -87,7 +87,7 @@
public MockEntry(DN dn, Attributes attributes) {
this.dn = dn;
this.attributes = attributes;
- this.children = new LinkedList<MockEntry>();
+ this.children = new LinkedList<>();
}
@@ -150,7 +150,7 @@
*/
public MockLDAPConnection() {
this.rootEntry = new MockEntry(DN.rootDN(), new BasicAttributes());
- this.entries = new HashMap<DN, MockEntry>();
+ this.entries = new HashMap<>();
this.entries.put(DN.rootDN(), this.rootEntry);
}
@@ -207,7 +207,7 @@
throw new NameNotFoundException("could not find entry " + dn);
}
- LinkedList<LdapName> names = new LinkedList<LdapName>();
+ LinkedList<LdapName> names = new LinkedList<>();
for (MockEntry child : entry.children)
{
names.add(new LdapName(child.getDN().toString()));
@@ -262,7 +262,7 @@
*/
protected final void assertAttributeEquals(Attribute attr,
Collection<String> values) throws NamingException {
- LinkedList<String> actualValues = new LinkedList<String>();
+ LinkedList<String> actualValues = new LinkedList<>();
NamingEnumeration<?> ne = attr.getAll();
while (ne.hasMore()) {
actualValues.add(ne.next().toString());
--
Gitblit v1.10.0