From 89c103b6b1164cc89c844dc3055586ffaab4070a Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Mon, 27 Apr 2015 12:18:16 +0000
Subject: [PATCH] AutoRefactor'ed use diamond operator

---
 opendj-sdk/opendj-cli/src/main/java/com/forgerock/opendj/cli/FileBasedArgument.java |   13 +++----------
 1 files changed, 3 insertions(+), 10 deletions(-)

diff --git a/opendj-sdk/opendj-cli/src/main/java/com/forgerock/opendj/cli/FileBasedArgument.java b/opendj-sdk/opendj-cli/src/main/java/com/forgerock/opendj/cli/FileBasedArgument.java
index 1fd9fe7..fd96b58 100644
--- a/opendj-sdk/opendj-cli/src/main/java/com/forgerock/opendj/cli/FileBasedArgument.java
+++ b/opendj-sdk/opendj-cli/src/main/java/com/forgerock/opendj/cli/FileBasedArgument.java
@@ -22,7 +22,7 @@
  *
  *
  *      Copyright 2006-2008 Sun Microsystems, Inc.
- *      Portions copyright 2014 ForgeRock AS
+ *      Portions copyright 2014-2015 ForgeRock AS
  */
 package com.forgerock.opendj.cli;
 
@@ -54,11 +54,8 @@
  * multiple lines, then only the first line will be read.
  */
 public final class FileBasedArgument extends Argument {
-    /**
-     * The mapping between filenames specified and the first lines read
-     * from those files.
-     */
-    private final LinkedHashMap<String, String> namesToValues;
+    /** The mapping between filenames specified and the first lines read from those files. */
+    private final LinkedHashMap<String, String> namesToValues = new LinkedHashMap<>();
 
     /**
      * Creates a new file-based argument with the provided information.
@@ -103,8 +100,6 @@
             throws ArgumentException {
         super(name, shortIdentifier, longIdentifier, isRequired, isMultiValued, true,
                 valuePlaceholder, defaultValue, propertyName, description);
-
-        namesToValues = new LinkedHashMap<String, String>();
     }
 
     /**
@@ -138,8 +133,6 @@
             throws ArgumentException {
         super(name, shortIdentifier, longIdentifier, isRequired, false, true, valuePlaceholder,
                 null, null, description);
-
-        namesToValues = new LinkedHashMap<String, String>();
     }
 
     /**

--
Gitblit v1.10.0