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/test/java/org/opends/server/admin/ValidateConfigDefinitionsTest.java | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/opendj-server-legacy/src/test/java/org/opends/server/admin/ValidateConfigDefinitionsTest.java b/opendj-server-legacy/src/test/java/org/opends/server/admin/ValidateConfigDefinitionsTest.java
index 971a587..86f6010 100644
--- a/opendj-server-legacy/src/test/java/org/opends/server/admin/ValidateConfigDefinitionsTest.java
+++ b/opendj-server-legacy/src/test/java/org/opends/server/admin/ValidateConfigDefinitionsTest.java
@@ -58,8 +58,7 @@
@DataProvider
public Object[][] enumrateManageObjectDefns() throws Exception {
TopCfgDefn topCfgDefn = TopCfgDefn.getInstance();
- List<AbstractManagedObjectDefinition<?,?>> allCfgDefns =
- new ArrayList<AbstractManagedObjectDefinition<?,?>>(topCfgDefn.getAllChildren());
+ List<AbstractManagedObjectDefinition<?,?>> allCfgDefns = new ArrayList<>(topCfgDefn.getAllChildren());
Object[][] params = new Object[allCfgDefns.size()][];
for (int i = 0; i < params.length; i++) {
@@ -213,7 +212,7 @@
" is declared as mandatory in the schema.").append(EOL + EOL);
}
- Set<AttributeType> allowedAttributes = new HashSet<AttributeType>(mandatoryAttributes);
+ Set<AttributeType> allowedAttributes = new HashSet<>(mandatoryAttributes);
allowedAttributes.addAll(configObjectClass.getOptionalAttributeChain());
if (!allowedAttributes.contains(attrType)) {
errors.append(propName + " property on config object " + objName + " has" +
@@ -224,7 +223,4 @@
}
}
}
-
-
-
}
--
Gitblit v1.10.0