From 0b84d2442ea178dc9989a239f26be28327476c48 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Tue, 28 Apr 2015 09:24:26 +0000
Subject: [PATCH] AutoRefactor'ed use diamond operator
---
opendj-rest2ldap/src/main/java/org/forgerock/opendj/rest2ldap/Rest2LDAP.java | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/opendj-rest2ldap/src/main/java/org/forgerock/opendj/rest2ldap/Rest2LDAP.java b/opendj-rest2ldap/src/main/java/org/forgerock/opendj/rest2ldap/Rest2LDAP.java
index a0a3d26..c7cd8bb 100644
--- a/opendj-rest2ldap/src/main/java/org/forgerock/opendj/rest2ldap/Rest2LDAP.java
+++ b/opendj-rest2ldap/src/main/java/org/forgerock/opendj/rest2ldap/Rest2LDAP.java
@@ -11,9 +11,8 @@
* Header, with the fields enclosed by brackets [] replaced by your own identifying
* information: "Portions copyright [year] [name of copyright owner]".
*
- * Copyright 2013-2014 ForgeRock AS.
+ * Copyright 2013-2015 ForgeRock AS.
*/
-
package org.forgerock.opendj.rest2ldap;
import static org.forgerock.opendj.ldap.requests.Requests.newSearchRequest;
@@ -96,7 +95,7 @@
* A builder for incrementally constructing LDAP resource collections.
*/
public static final class Builder {
- private final List<Attribute> additionalLDAPAttributes = new LinkedList<Attribute>();
+ private final List<Attribute> additionalLDAPAttributes = new LinkedList<>();
private AuthorizationPolicy authzPolicy = AuthorizationPolicy.NONE;
private DN baseDN; // TODO: support template variables.
private AttributeDescription etagAttribute;
@@ -1083,8 +1082,7 @@
final JsonValue parent =
normalizeConnectionFactory(configuration,
current.get("inheritFrom").asString(), depth + 1);
- final Map<String, Object> normalized =
- new LinkedHashMap<String, Object>(parent.asMap());
+ final Map<String, Object> normalized = new LinkedHashMap<>(parent.asMap());
normalized.putAll(current.asMap());
normalized.remove("inheritFrom");
return new JsonValue(normalized);
@@ -1098,7 +1096,7 @@
final BindRequest bindRequest, final int connectionPoolSize,
final int heartBeatIntervalSeconds, final int heartBeatTimeoutMilliSeconds,
final LDAPOptions options) {
- final List<ConnectionFactory> servers = new ArrayList<ConnectionFactory>(config.size());
+ final List<ConnectionFactory> servers = new ArrayList<>(config.size());
for (final JsonValue server : config) {
final String host = server.get("hostname").required().asString();
final int port = server.get("port").required().asInteger();
--
Gitblit v1.10.0