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/dsml/org/opends/dsml/protocol/DSMLModifyOperation.java |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/opendj-server-legacy/src/dsml/org/opends/dsml/protocol/DSMLModifyOperation.java b/opendj-server-legacy/src/dsml/org/opends/dsml/protocol/DSMLModifyOperation.java
index d1e3772..d1f99c5 100644
--- a/opendj-server-legacy/src/dsml/org/opends/dsml/protocol/DSMLModifyOperation.java
+++ b/opendj-server-legacy/src/dsml/org/opends/dsml/protocol/DSMLModifyOperation.java
@@ -22,7 +22,7 @@
  *
  *
  *      Copyright 2006-2008 Sun Microsystems, Inc.
- *      Portions Copyright 2012-2014 ForgeRock AS.
+ *      Portions Copyright 2012-2015 ForgeRock AS.
  */
 package org.opends.dsml.protocol;
 
@@ -92,8 +92,7 @@
     LDAPResult modResponse = objFactory.createLDAPResult();
     modResponse.setRequestID(modifyRequest.getRequestID());
 
-    ArrayList<RawModification> modifications =
-         new ArrayList<RawModification> ();
+    ArrayList<RawModification> modifications = new ArrayList<>();
 
     // Read the modification type from the DSML request.
     List<DsmlModification> mods = modifyRequest.getModification();
@@ -111,10 +110,9 @@
 
       // Read the attribute name and values.
       String attrType = attr.getName();
-      ArrayList<ByteString> values = new ArrayList<ByteString> ();
+      ArrayList<ByteString> values = new ArrayList<>();
 
-      List<Object> vals = attr.getValue();
-      for(Object val : vals)
+      for (Object val : attr.getValue())
       {
         values.add(ByteStringUtility.convertValue(val));
       }

--
Gitblit v1.10.0