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/BrowseIndexPanel.java |   22 ++++++++--------------
 1 files changed, 8 insertions(+), 14 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/ui/BrowseIndexPanel.java b/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/ui/BrowseIndexPanel.java
index d70fa2c..b77761a 100644
--- a/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/ui/BrowseIndexPanel.java
+++ b/opendj-server-legacy/src/main/java/org/opends/guitools/controlpanel/ui/BrowseIndexPanel.java
@@ -573,12 +573,9 @@
       }
     }
 
-    ArrayList<ArrayList<? extends AbstractIndexTreeNode>> nodes =
-      new ArrayList<ArrayList<? extends AbstractIndexTreeNode>>();
-    ArrayList<IndexTreeNode> standardIndexNodes =
-      new ArrayList<IndexTreeNode>();
-    ArrayList<VLVIndexTreeNode> vlvIndexNodes =
-      new ArrayList<VLVIndexTreeNode>();
+    ArrayList<ArrayList<? extends AbstractIndexTreeNode>> nodes = new ArrayList<>();
+    ArrayList<IndexTreeNode> standardIndexNodes = new ArrayList<>();
+    ArrayList<VLVIndexTreeNode> vlvIndexNodes = new ArrayList<>();
     nodes.add(standardIndexNodes);
     nodes.add(vlvIndexNodes);
 
@@ -835,11 +832,10 @@
 
   private void deleteClicked()
   {
-    ArrayList<LocalizableMessage> errors = new ArrayList<LocalizableMessage>();
+    ArrayList<LocalizableMessage> errors = new ArrayList<>();
     TreePath[] paths = treePane.getTree().getSelectionPaths();
-    ArrayList<AbstractIndexDescriptor> indexesToDelete =
-      new ArrayList<AbstractIndexDescriptor>();
-    ArrayList<String> indexesNames = new ArrayList<String>();
+    ArrayList<AbstractIndexDescriptor> indexesToDelete = new ArrayList<>();
+    ArrayList<String> indexesNames = new ArrayList<>();
     if (paths != null)
     {
       for (TreePath path : paths)
@@ -902,10 +898,8 @@
     }
   }
 
-  private HashMap<Object, ImageIcon> hmCategoryImages =
-    new HashMap<Object, ImageIcon>();
-  private HashMap<Class<?>, ImageIcon> hmImages =
-    new HashMap<Class<?>, ImageIcon>();
+  private HashMap<Object, ImageIcon> hmCategoryImages = new HashMap<>();
+  private HashMap<Class<?>, ImageIcon> hmImages = new HashMap<>();
   {
     Object[] nodes = {standardIndexes, vlvIndexes};
     String[] paths = {"ds-idx-folder.png", "ds-vlv-idx-folder.png"};

--
Gitblit v1.10.0