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/authorization/dseecompat/PatternDN.java | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/authorization/dseecompat/PatternDN.java b/opendj-server-legacy/src/main/java/org/opends/server/authorization/dseecompat/PatternDN.java
index 654f7a3..881c11a 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/authorization/dseecompat/PatternDN.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/authorization/dseecompat/PatternDN.java
@@ -294,8 +294,8 @@
public static PatternDN decode(String dnString)
throws DirectoryException
{
- ArrayList<PatternRDN> rdnComponents = new ArrayList<PatternRDN>();
- ArrayList<Integer> doubleWildPos = new ArrayList<Integer>();
+ ArrayList<PatternRDN> rdnComponents = new ArrayList<>();
+ ArrayList<Integer> doubleWildPos = new ArrayList<>();
// A null or empty DN is acceptable.
if (dnString == null)
@@ -442,7 +442,7 @@
// RDN component and return the DN.
if (pos >= length)
{
- ArrayList<ByteString> arrayList = new ArrayList<ByteString>(1);
+ ArrayList<ByteString> arrayList = new ArrayList<>(1);
arrayList.add(ByteString.empty());
rdnComponents.add(new PatternRDN(name, arrayList, dnString));
break;
@@ -450,7 +450,7 @@
// Parse the value for this RDN component.
- ArrayList<ByteString> parsedValue = new ArrayList<ByteString>();
+ ArrayList<ByteString> parsedValue = new ArrayList<>();
pos = parseValuePattern(dnString, pos, parsedValue);
@@ -575,7 +575,7 @@
// the RDN component and return the DN.
if (pos >= length)
{
- ArrayList<ByteString> arrayList = new ArrayList<ByteString>(1);
+ ArrayList<ByteString> arrayList = new ArrayList<>(1);
arrayList.add(ByteString.empty());
rdn.addValue(name, arrayList, dnString);
rdnComponents.add(rdn);
@@ -584,7 +584,7 @@
// Parse the value for this RDN component.
- parsedValue = new ArrayList<ByteString>();
+ parsedValue = new ArrayList<>();
pos = parseValuePattern(dnString, pos, parsedValue);
@@ -641,7 +641,7 @@
{
PatternRDN[] subInitial = null;
PatternRDN[] subFinal = null;
- List<PatternRDN[]> subAnyElements = new ArrayList<PatternRDN[]>();
+ List<PatternRDN[]> subAnyElements = new ArrayList<>();
int i = 0;
int numComponents = rdnComponents.size();
--
Gitblit v1.10.0