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/plugins/PasswordPolicyImportPlugin.java |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/plugins/PasswordPolicyImportPlugin.java b/opendj-server-legacy/src/main/java/org/opends/server/plugins/PasswordPolicyImportPlugin.java
index 77048f5..5e2ea65 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/plugins/PasswordPolicyImportPlugin.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/plugins/PasswordPolicyImportPlugin.java
@@ -250,8 +250,8 @@
   {
     // Find the set of attribute types with the auth password and user password
     // syntax defined in the schema.
-    HashSet<AttributeType> authPWTypes = new HashSet<AttributeType>();
-    HashSet<AttributeType> userPWTypes = new HashSet<AttributeType>();
+    HashSet<AttributeType> authPWTypes = new HashSet<>();
+    HashSet<AttributeType> userPWTypes = new HashSet<>();
     for (AttributeType t : DirectoryServer.getAttributeTypes().values())
     {
       if (t.getSyntax().getOID().equals(SYNTAX_AUTH_PASSWORD_OID))
@@ -267,16 +267,14 @@
 
     // Get the set of password policies defined in the server and get the
     // attribute types associated with them.
-    HashMap<DN,PasswordStorageScheme<?>[]> schemeMap =
-         new HashMap<DN,PasswordStorageScheme<?>[]>();
+    HashMap<DN,PasswordStorageScheme<?>[]> schemeMap = new HashMap<>();
     for (AuthenticationPolicy ap : DirectoryServer.getAuthenticationPolicies())
     {
       if (ap.isPasswordPolicy())
       {
         PasswordPolicy p = (PasswordPolicy) ap;
 
-        List<PasswordStorageScheme<?>> schemeList = p
-            .getDefaultPasswordStorageSchemes();
+        List<PasswordStorageScheme<?>> schemeList = p.getDefaultPasswordStorageSchemes();
         PasswordStorageScheme<?>[] schemeArray =
           new PasswordStorageScheme[schemeList.size()];
         schemeList.toArray(schemeArray);

--
Gitblit v1.10.0