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/tools/ExportLDIF.java | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/tools/ExportLDIF.java b/opendj-server-legacy/src/main/java/org/opends/server/tools/ExportLDIF.java
index ce34cc5..a096cf4 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/tools/ExportLDIF.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/tools/ExportLDIF.java
@@ -412,14 +412,14 @@
private ArrayList<ByteString> toByteStrings(String value)
{
- final ArrayList<ByteString> values = new ArrayList<ByteString>(1);
+ final ArrayList<ByteString> values = new ArrayList<>(1);
values.add(ByteString.valueOf(value));
return values;
}
private ArrayList<ByteString> toByteStrings(List<String> includeAttributes)
{
- final ArrayList<ByteString> values = new ArrayList<ByteString>(includeAttributes.size());
+ final ArrayList<ByteString> values = new ArrayList<>(includeAttributes.size());
for (String includeAttribute : includeAttributes)
{
values.add(ByteString.valueOf(includeAttribute));
@@ -565,7 +565,7 @@
// Make sure that the Directory Server plugin initialization is performed.
try
{
- HashSet<PluginType> pluginTypes = new HashSet<PluginType>(1);
+ HashSet<PluginType> pluginTypes = new HashSet<>(1);
pluginTypes.add(PluginType.LDIF_EXPORT);
directoryServer.initializePlugins(pluginTypes);
}
@@ -595,7 +595,7 @@
}
else
{
- excludeAttributes = new HashSet<AttributeType>();
+ excludeAttributes = new HashSet<>();
for (String attrName : excludeAttributeStrings.getValues())
{
String lowerName = attrName.toLowerCase();
@@ -616,7 +616,7 @@
}
else
{
- includeAttributes =new HashSet<AttributeType>();
+ includeAttributes = new HashSet<>();
for (String attrName : includeAttributeStrings.getValues())
{
String lowerName = attrName.toLowerCase();
@@ -637,7 +637,7 @@
}
else
{
- excludeFilters = new ArrayList<SearchFilter>();
+ excludeFilters = new ArrayList<>();
for (String filterString : excludeFilterStrings.getValues())
{
try
@@ -664,7 +664,7 @@
}
else
{
- includeFilters = new ArrayList<SearchFilter>();
+ includeFilters = new ArrayList<>();
for (String filterString : includeFilterStrings.getValues())
{
try
@@ -694,9 +694,9 @@
List<DN> defaultIncludeBranches = null;
ArrayList<DN> excludeBranches = null;
- ArrayList<Backend> backendList = new ArrayList<Backend>();
- ArrayList<BackendCfg> entryList = new ArrayList<BackendCfg>();
- ArrayList<List<DN>> dnList = new ArrayList<List<DN>>();
+ ArrayList<Backend> backendList = new ArrayList<>();
+ ArrayList<BackendCfg> entryList = new ArrayList<>();
+ ArrayList<List<DN>> dnList = new ArrayList<>();
BackendToolUtils.getBackends(backendList, entryList, dnList);
int numBackends = backendList.size();
@@ -734,7 +734,7 @@
if (excludeBranchStrings.isPresent())
{
- excludeBranches = new ArrayList<DN>();
+ excludeBranches = new ArrayList<>();
for (String s : excludeBranchStrings.getValues())
{
DN excludeBranch;
@@ -764,7 +764,7 @@
List<DN> includeBranches;
if (includeBranchStrings.isPresent())
{
- includeBranches = new ArrayList<DN>();
+ includeBranches = new ArrayList<>();
for (String s : includeBranchStrings.getValues())
{
DN includeBranch;
--
Gitblit v1.10.0