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

Matthew Swift
18.55.2014 d46701cdbecec6f6c10f57432f3e6a484752f42c
opendj3-server-dev/src/server/org/opends/server/admin/EnumPropertyDefinition.java
@@ -179,13 +179,13 @@
   */
  @Override
  public E decodeValue(String value)
      throws IllegalPropertyValueStringException {
      throws PropertyException {
    ifNull(value);
    String nvalue = value.trim().toLowerCase();
    E eValue = decodeMap.get(nvalue);
    if (eValue == null) {
      throw new IllegalPropertyValueStringException(this, value);
      throw PropertyException.illegalPropertyValueException(this, value);
    } else {
      return eValue;
    }
@@ -254,7 +254,7 @@
   */
  @Override
  public String normalizeValue(E value)
      throws IllegalPropertyValueException {
      throws PropertyException {
    ifNull(value);
    return value.toString().trim().toLowerCase();
@@ -267,7 +267,7 @@
   */
  @Override
  public void validateValue(E value)
      throws IllegalPropertyValueException {
      throws PropertyException {
    ifNull(value);
    // No additional validation required.