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

Nicolas Capponi
08.33.2014 8643a9160860e31611f034467f702eb3a712eb34
opendj3-server-dev/src/server/org/opends/server/admin/IPAddressPropertyDefinition.java
@@ -22,13 +22,14 @@
 *
 *
 *      Copyright 2008 Sun Microsystems, Inc.
 *      Portions Copyright 2014 ForgeRock AS
 */
package org.opends.server.admin;
import static org.opends.server.util.Validator.ensureNotNull;
import static org.forgerock.util.Reject.ifNull;
import java.net.InetAddress;
import java.net.UnknownHostException;
@@ -109,7 +110,7 @@
  @Override
  public void validateValue(InetAddress value)
      throws IllegalPropertyValueException {
    ensureNotNull(value);
    ifNull(value);
    // No additional validation required.
  }
@@ -122,7 +123,7 @@
  @Override
  public InetAddress decodeValue(String value)
      throws IllegalPropertyValueStringException {
    ensureNotNull(value);
    ifNull(value);
    try {
      return InetAddress.getByName(value);