mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Nicolas Capponi
08.33.2014 8643a9160860e31611f034467f702eb3a712eb34
opendj3-server-dev/src/server/org/opends/server/admin/StringPropertyDefinition.java
@@ -22,6 +22,7 @@
 *
 *
 *      Copyright 2008 Sun Microsystems, Inc.
 *      Portions Copyright 2014 ForgeRock AS
 */
package org.opends.server.admin;
@@ -29,7 +30,7 @@
import static org.opends.server.util.Validator.ensureNotNull;
import static org.forgerock.util.Reject.ifNull;
import java.util.EnumSet;
import java.util.Locale;
@@ -203,7 +204,7 @@
  @Override
  public String decodeValue(String value)
      throws IllegalPropertyValueStringException {
    ensureNotNull(value);
    ifNull(value);
    try {
      validateValue(value);
@@ -306,7 +307,7 @@
  @Override
  public String normalizeValue(String value)
      throws IllegalPropertyValueException {
    ensureNotNull(value);
    ifNull(value);
    if (isCaseInsensitive()) {
      return value.trim().toLowerCase();
@@ -322,7 +323,7 @@
   */
  @Override
  public void validateValue(String value) throws IllegalPropertyValueException {
    ensureNotNull(value);
    ifNull(value);
    if (pattern != null) {
      Matcher matcher = pattern.matcher(value);