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/test/java/org/opends/server/plugins/SambaPasswordPluginTestCase.java | 20 +++++++++-----------
1 files changed, 9 insertions(+), 11 deletions(-)
diff --git a/opendj-server-legacy/src/test/java/org/opends/server/plugins/SambaPasswordPluginTestCase.java b/opendj-server-legacy/src/test/java/org/opends/server/plugins/SambaPasswordPluginTestCase.java
index 41eedd5..005f03e 100644
--- a/opendj-server-legacy/src/test/java/org/opends/server/plugins/SambaPasswordPluginTestCase.java
+++ b/opendj-server-legacy/src/test/java/org/opends/server/plugins/SambaPasswordPluginTestCase.java
@@ -22,7 +22,7 @@
*
*
* Copyright 2011-2012 profiq s.r.o.
- * Portions Copyright 2011-2014 ForgeRock AS.
+ * Portions Copyright 2011-2015 ForgeRock AS.
*/
package org.opends.server.plugins;
@@ -139,9 +139,8 @@
* Samba administrative user needs a permission to manipulate user accounts.
* Hence, we add a very permissive ACI.
*/
- InternalClientConnection conn = InternalClientConnection
- .getRootConnection();
- LinkedList<Modification> mods = new LinkedList<Modification>();
+ InternalClientConnection conn = InternalClientConnection.getRootConnection();
+ LinkedList<Modification> mods = new LinkedList<>();
mods.add(new Modification(ModificationType.ADD, Attributes.create("aci",
"(target=\"ldap:///uid=*,o=test\")(targetattr=\"*\")"
@@ -221,10 +220,9 @@
TestCaseUtils.addEntry(testEntry);
// Perform the modify operation
- InternalClientConnection conn = InternalClientConnection
- .getRootConnection();
+ InternalClientConnection conn = InternalClientConnection.getRootConnection();
- LinkedList<Modification> mods = new LinkedList<Modification>();
+ LinkedList<Modification> mods = new LinkedList<>();
mods.add(new Modification(ModificationType.REPLACE, Attributes.create(
"userPassword", "password")));
@@ -301,7 +299,7 @@
InternalClientConnection conn = new InternalClientConnection(authInfo);
- LinkedList<Modification> mods = new LinkedList<Modification>();
+ LinkedList<Modification> mods = new LinkedList<>();
mods.add(new Modification(ModificationType.REPLACE, Attributes.create(
"userPassword", "password")));
@@ -348,7 +346,7 @@
InternalClientConnection conn = new InternalClientConnection(authInfo);
- LinkedList<Modification> mods = new LinkedList<Modification>();
+ LinkedList<Modification> mods = new LinkedList<>();
mods.add(new Modification(ModificationType.REPLACE, Attributes.create(
"userPassword", "password1")));
@@ -398,7 +396,7 @@
InternalClientConnection conn = InternalClientConnection
.getRootConnection();
- LinkedList<Modification> mods = new LinkedList<Modification>();
+ LinkedList<Modification> mods = new LinkedList<>();
mods.add(new Modification(ModificationType.ADD, Attributes.create(
"userPassword", "password1")));
@@ -707,7 +705,7 @@
InternalClientConnection conn = InternalClientConnection
.getRootConnection();
- LinkedList<Modification> mods = new LinkedList<Modification>();
+ LinkedList<Modification> mods = new LinkedList<>();
mods.add(new Modification(ModificationType.REPLACE, Attributes.create(
"userPassword", "password")));
--
Gitblit v1.10.0