From 90a6ab6c63699343acf3adcd4346bce2f5665bdd Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Tue, 07 Jul 2015 15:12:28 +0000
Subject: [PATCH] AutoRefactor'ed Use Diamond Operator
---
opendj-server-legacy/src/main/java/org/opends/server/admin/ClassPropertyDefinition.java | 15 +++------------
1 files changed, 3 insertions(+), 12 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/admin/ClassPropertyDefinition.java b/opendj-server-legacy/src/main/java/org/opends/server/admin/ClassPropertyDefinition.java
index 9425f93..e121382 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/admin/ClassPropertyDefinition.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/admin/ClassPropertyDefinition.java
@@ -29,7 +29,7 @@
-import static org.forgerock.util.Reject.ifNull;
+import static org.forgerock.util.Reject.*;
import static org.opends.server.admin.PropertyException.*;
import java.util.Collections;
@@ -63,20 +63,13 @@
AbstractBuilder<String, ClassPropertyDefinition> {
/** List of interfaces which property values must implement. */
- private List<String> instanceOfInterfaces;
-
-
+ private List<String> instanceOfInterfaces = new LinkedList<>();
/** Private constructor. */
- private Builder(
- AbstractManagedObjectDefinition<?, ?> d, String propertyName) {
+ private Builder(AbstractManagedObjectDefinition<?, ?> d, String propertyName) {
super(d, propertyName);
-
- this.instanceOfInterfaces = new LinkedList<String>();
}
-
-
/**
* Add an class name which property values must implement.
*
@@ -201,8 +194,6 @@
/** List of interfaces which property values must implement. */
private final List<String> instanceOfInterfaces;
-
-
/** Private constructor. */
private ClassPropertyDefinition(
AbstractManagedObjectDefinition<?, ?> d, String propertyName,
--
Gitblit v1.10.0