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/protocols/ldap/LDAPAttribute.java | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/protocols/ldap/LDAPAttribute.java b/opendj-server-legacy/src/main/java/org/opends/server/protocols/ldap/LDAPAttribute.java
index 1b3727c..d07e732 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/protocols/ldap/LDAPAttribute.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/protocols/ldap/LDAPAttribute.java
@@ -22,7 +22,7 @@
*
*
* Copyright 2006-2009 Sun Microsystems, Inc.
- * Portions Copyright 2013-2014 ForgeRock AS
+ * Portions Copyright 2013-2015 ForgeRock AS
*/
package org.opends.server.protocols.ldap;
@@ -62,7 +62,7 @@
{
this.attributeType = attributeType;
- values = new ArrayList<ByteString>(0);
+ values = new ArrayList<>(0);
}
@@ -77,7 +77,7 @@
{
this.attributeType = attributeType;
- values = new ArrayList<ByteString>(1);
+ values = new ArrayList<>(1);
values.add(ByteString.valueOf(value));
}
@@ -93,7 +93,7 @@
{
this.attributeType = attributeType;
- values = new ArrayList<ByteString>(1);
+ values = new ArrayList<>(1);
values.add(value);
}
@@ -111,11 +111,11 @@
if (values == null)
{
- this.values = new ArrayList<ByteString>(0);
+ this.values = new ArrayList<>(0);
}
else
{
- this.values = new ArrayList<ByteString>(values.size());
+ this.values = new ArrayList<>(values.size());
for (String value : values)
{
this.values.add(ByteString.valueOf(value));
@@ -137,7 +137,7 @@
if (values == null)
{
- this.values = new ArrayList<ByteString>(0);
+ this.values = new ArrayList<>(0);
}
else
{
@@ -158,16 +158,16 @@
if (attribute.isVirtual())
{
- values = new ArrayList<ByteString>();
+ values = new ArrayList<>();
}
else if (attribute.isEmpty())
{
- values = new ArrayList<ByteString>(0);
+ values = new ArrayList<>(0);
return;
}
else
{
- values = new ArrayList<ByteString>(attribute.size());
+ values = new ArrayList<>(attribute.size());
}
for (ByteString v : attribute)
--
Gitblit v1.10.0