From 2dc073d0f37048372498e13ffe84455896bac945 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Mon, 18 May 2015 22:47:48 +0000
Subject: [PATCH] AutoRefactor'ed Use diamond operator

---
 opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/ui/ViewEntryPanel.java |   21 +++++++++------------
 1 files changed, 9 insertions(+), 12 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/ui/ViewEntryPanel.java b/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/ui/ViewEntryPanel.java
index e7c2cb0..97e9b5c 100644
--- a/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/ui/ViewEntryPanel.java
+++ b/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/ui/ViewEntryPanel.java
@@ -77,21 +77,18 @@
   /**
    * The read-only attributes as they appear on the schema.
    */
-  protected SortedSet<String> schemaReadOnlyAttributes = new TreeSet<String>();
+  protected SortedSet<String> schemaReadOnlyAttributes = new TreeSet<>();
   /**
    * The read-only attributes in lower case.
    */
-  protected SortedSet<String> schemaReadOnlyAttributesLowerCase =
-    new TreeSet<String>();
+  protected SortedSet<String> schemaReadOnlyAttributesLowerCase = new TreeSet<>();
   /**
    * The editable operational attributes.
    */
-  protected SortedSet<String> editableOperationalAttrNames =
-    new TreeSet<String>();
+  protected SortedSet<String> editableOperationalAttrNames = new TreeSet<>();
   private JLabel title= Utilities.createDefaultLabel();
 
-  private Set<LDAPEntryChangedListener> listeners =
-    new LinkedHashSet<LDAPEntryChangedListener>();
+  private Set<LDAPEntryChangedListener> listeners = new LinkedHashSet<>();
 
   /**
    * Whether the entry change events should be ignored or not.
@@ -291,7 +288,7 @@
       Schema schema)
   {
     ObjectClass structuralObjectClass = null;
-    SortedSet<String> auxiliaryClasses = new TreeSet<String>();
+    SortedSet<String> auxiliaryClasses = new TreeSet<>();
     for (Object o : ocValues)
     {
       ObjectClass objectClass =
@@ -348,7 +345,7 @@
         {
           if (attr.getNameWithOptions().equals(attrName))
           {
-            ArrayList<ByteString> newValues = new ArrayList<ByteString>();
+            ArrayList<ByteString> newValues = new ArrayList<>();
             Iterator<ByteString> it = attr.iterator();
             while (it.hasNext())
             {
@@ -365,7 +362,7 @@
       {
         org.opends.server.types.Attribute attr =
           Attributes.create(rdn.getAttributeType(i), value);
-        ArrayList<ByteString> newValues = new ArrayList<ByteString>();
+        ArrayList<ByteString> newValues = new ArrayList<>();
         newValues.add(value);
         entry.addAttribute(attr, newValues);
       }
@@ -548,7 +545,7 @@
   protected void setValues(CustomSearchResult sr, String attrName)
   {
     List<Object> values = getValues(attrName);
-    List<Object> valuesToSet = new ArrayList<Object>();
+    List<Object> valuesToSet = new ArrayList<>();
     for (Object value : values)
     {
       if (value instanceof ObjectClassValue)
@@ -621,7 +618,7 @@
   protected Set<String> getObjectClassSuperiorValues(
       ObjectClass oc)
   {
-    Set<String> names = new LinkedHashSet<String>();
+    Set<String> names = new LinkedHashSet<>();
     Set<ObjectClass> parents = oc.getSuperiorClasses();
     if (parents != null && !parents.isEmpty())
     {

--
Gitblit v1.10.0