From 90a6ab6c63699343acf3adcd4346bce2f5665bdd Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Tue, 07 Jul 2015 15:12:28 +0000
Subject: [PATCH] AutoRefactor'ed Use Diamond Operator
---
opendj-server-legacy/src/main/java/org/opends/server/admin/client/ldap/LDAPDriver.java | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/admin/client/ldap/LDAPDriver.java b/opendj-server-legacy/src/main/java/org/opends/server/admin/client/ldap/LDAPDriver.java
index 4b7cb88..c57b3c8 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/admin/client/ldap/LDAPDriver.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/admin/client/ldap/LDAPDriver.java
@@ -209,7 +209,7 @@
ManagedObjectDefinition<? extends C, ? extends S> mod =
getEntryDefinition(d, dn);
- ArrayList<String> attrIds = new ArrayList<String>();
+ ArrayList<String> attrIds = new ArrayList<>();
for (PropertyDefinition<?> pd : mod.getAllPropertyDefinitions()) {
String attrId = profile.getAttributeName(mod, pd);
attrIds.add(attrId);
@@ -218,7 +218,7 @@
Attributes attributes = connection.readEntry(dn, attrIds);
// Build the managed object's properties.
- List<PropertyException> exceptions = new LinkedList<PropertyException>();
+ List<PropertyException> exceptions = new LinkedList<>();
PropertySet newProperties = new PropertySet();
for (PropertyDefinition<?> pd : mod.getAllPropertyDefinitions()) {
String attrID = profile.getAttributeName(mod, pd);
@@ -289,7 +289,7 @@
Attribute attribute = attributes.get(attrID);
// Decode the values.
- SortedSet<PD> values = new TreeSet<PD>(pd);
+ SortedSet<PD> values = new TreeSet<>(pd);
if (attribute != null) {
NamingEnumeration<?> ldapValues = attribute.getAll();
while (ldapValues.hasMore()) {
@@ -330,7 +330,7 @@
/** {@inheritDoc} */
@Override
public ManagedObject<RootCfgClient> getRootConfigurationManagedObject() {
- return new LDAPManagedObject<RootCfgClient>(this,
+ return new LDAPManagedObject<>(this,
RootCfgDefn.getInstance(), ManagedObjectPath.emptyPath(),
new PropertySet(), true, null);
}
@@ -362,7 +362,7 @@
builder.append(')');
String filter = builder.toString();
- List<String> children = new ArrayList<String>();
+ List<String> children = new ArrayList<>();
try {
for (LdapName child : connection.listEntries(dn, filter)) {
children.add(child.getRdn(child.size() - 1).getValue().toString());
@@ -405,7 +405,7 @@
builder.append(')');
String filter = builder.toString();
- List<String> children = new ArrayList<String>();
+ List<String> children = new ArrayList<>();
try {
for (LdapName child : connection.listEntries(dn, filter)) {
children.add(child.getRdn(child.size() - 1).getValue().toString());
@@ -571,7 +571,7 @@
(InstantiableRelationDefinition<?, ?>) rd;
pd = ird.getNamingPropertyDefinition();
}
- return new LDAPManagedObject<M>(this, d, p.asSubType(d), properties, true, pd);
+ return new LDAPManagedObject<>(this, d, p.asSubType(d), properties, true, pd);
}
@@ -584,7 +584,7 @@
PropertyException exception = null;
// Get the property's active values.
- SortedSet<PD> activeValues = new TreeSet<PD>(pd);
+ SortedSet<PD> activeValues = new TreeSet<>(pd);
if (attribute != null) {
NamingEnumeration<?> ldapValues = attribute.getAll();
while (ldapValues.hasMore()) {
@@ -644,7 +644,7 @@
throw new DefinitionDecodingException(d, Reason.NO_TYPE_INFORMATION);
}
- final Set<String> objectClasses = new HashSet<String>();
+ final Set<String> objectClasses = new HashSet<>();
NamingEnumeration<?> values = oc.getAll();
while (values.hasMore()) {
Object value = values.next();
--
Gitblit v1.10.0