From 8643a9160860e31611f034467f702eb3a712eb34 Mon Sep 17 00:00:00 2001
From: Nicolas Capponi <nicolas.capponi@forgerock.com>
Date: Wed, 08 Jan 2014 14:33:23 +0000
Subject: [PATCH] Replace org.opends.server.util.Validator class by org.forgerock.util.Reject class from forgerock-util module
---
opendj3-server-dev/src/server/org/opends/server/tools/dsconfig/PropertyValueEditor.java | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/opendj3-server-dev/src/server/org/opends/server/tools/dsconfig/PropertyValueEditor.java b/opendj3-server-dev/src/server/org/opends/server/tools/dsconfig/PropertyValueEditor.java
index 1453f5b..19d2ba5 100644
--- a/opendj3-server-dev/src/server/org/opends/server/tools/dsconfig/PropertyValueEditor.java
+++ b/opendj3-server-dev/src/server/org/opends/server/tools/dsconfig/PropertyValueEditor.java
@@ -22,7 +22,7 @@
*
*
* Copyright 2008-2010 Sun Microsystems, Inc.
- * Portions Copyright 2013 ForgeRock AS
+ * Portions Copyright 2013-2014 ForgeRock AS
*/
package org.opends.server.tools.dsconfig;
@@ -76,7 +76,7 @@
import org.opends.server.admin.client.ManagementContext;
import org.opends.server.protocols.ldap.LDAPResultCode;
import org.opends.server.tools.ClientException;
-import org.opends.server.util.Validator;
+import org.forgerock.util.Reject;
import org.opends.server.util.cli.CLIException;
import org.opends.server.util.cli.ConsoleApplication;
import org.opends.server.util.cli.HelpCallback;
@@ -696,7 +696,7 @@
// Creates a new property editor for the specified property.
private MultiValuedPropertyEditor(ManagedObject<?> mo,
PropertyDefinition<?> pd) {
- Validator.ensureTrue(pd.hasOption(PropertyOption.MULTI_VALUED));
+ Reject.ifFalse(pd.hasOption(PropertyOption.MULTI_VALUED));
this.mo = mo;
this.pd = pd;
@@ -1599,7 +1599,7 @@
// Creates a new property editor for the specified property.
private SingleValuedPropertyEditor(ManagedObject<?> mo,
PropertyDefinition<?> pd) {
- Validator.ensureTrue(!pd.hasOption(PropertyOption.MULTI_VALUED));
+ Reject.ifFalse(!pd.hasOption(PropertyOption.MULTI_VALUED));
this.mo = mo;
this.pd = pd;
--
Gitblit v1.10.0