From fb22a3d183d0fbde920275e3e14138a27151e734 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-config/src/main/java/org/forgerock/opendj/config/dsconfig/PropertyEditorModification.java | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/opendj-config/src/main/java/org/forgerock/opendj/config/dsconfig/PropertyEditorModification.java b/opendj-config/src/main/java/org/forgerock/opendj/config/dsconfig/PropertyEditorModification.java
index e7230e5..3199129 100644
--- a/opendj-config/src/main/java/org/forgerock/opendj/config/dsconfig/PropertyEditorModification.java
+++ b/opendj-config/src/main/java/org/forgerock/opendj/config/dsconfig/PropertyEditorModification.java
@@ -22,7 +22,7 @@
*
*
* Copyright 2008 Sun Microsystems, Inc.
- * Portions Copyright 2014 ForgeRock AS
+ * Portions Copyright 2014-2015 ForgeRock AS
*/
package org.forgerock.opendj.config.dsconfig;
@@ -57,8 +57,8 @@
private PropertyDefinition<T> propertyDefinition;
private Type type;
- private SortedSet<T> values;
- private SortedSet<T> originalValues;
+ private final SortedSet<T> values;
+ private final SortedSet<T> originalValues;
/**
* The private constructor of the PropertyEditorModification.
@@ -76,8 +76,8 @@
SortedSet<T> originalValues) {
this.propertyDefinition = propertyDefinition;
this.type = type;
- this.values = new TreeSet<T>(values);
- this.originalValues = new TreeSet<T>(originalValues);
+ this.values = new TreeSet<>(values);
+ this.originalValues = new TreeSet<>(originalValues);
}
/**
@@ -93,7 +93,7 @@
*/
static <T> PropertyEditorModification<T> createResetModification(PropertyDefinition<T> propertyDefinition,
SortedSet<T> originalValues) {
- return new PropertyEditorModification<T>(propertyDefinition, Type.RESET, new TreeSet<T>(propertyDefinition),
+ return new PropertyEditorModification<>(propertyDefinition, Type.RESET, new TreeSet<T>(propertyDefinition),
originalValues);
}
@@ -112,7 +112,7 @@
*/
static <T> PropertyEditorModification<T> createAddModification(PropertyDefinition<T> propertyDefinition,
SortedSet<T> addedValues, SortedSet<T> originalValues) {
- return new PropertyEditorModification<T>(propertyDefinition, Type.ADD, addedValues, originalValues);
+ return new PropertyEditorModification<>(propertyDefinition, Type.ADD, addedValues, originalValues);
}
/**
@@ -130,7 +130,7 @@
*/
static <T> PropertyEditorModification<T> createSetModification(PropertyDefinition<T> propertyDefinition,
SortedSet<T> newValues, SortedSet<T> originalValues) {
- return new PropertyEditorModification<T>(propertyDefinition, Type.SET, newValues, originalValues);
+ return new PropertyEditorModification<>(propertyDefinition, Type.SET, newValues, originalValues);
}
/**
@@ -148,11 +148,11 @@
*/
static <T> PropertyEditorModification<T> createRemoveModification(PropertyDefinition<T> propertyDefinition,
SortedSet<T> removedValues, SortedSet<T> originalValues) {
- return new PropertyEditorModification<T>(propertyDefinition, Type.REMOVE, removedValues, originalValues);
+ return new PropertyEditorModification<>(propertyDefinition, Type.REMOVE, removedValues, originalValues);
}
/**
- * Retuns the property definition associated with this modification.
+ * Returns the property definition associated with this modification.
*
* @return the property definition associated with this modification.
*/
--
Gitblit v1.10.0