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

Jean-Noel Rouvignac
07.12.2015 90a6ab6c63699343acf3adcd4346bce2f5665bdd
opendj-server-legacy/src/main/java/org/opends/server/admin/EnumPropertyDefinition.java
@@ -101,7 +101,7 @@
        throw new IllegalStateException("Enumeration class undefined");
      }
      return new EnumPropertyDefinition<E>(d, propertyName, options,
      return new EnumPropertyDefinition<>(d, propertyName, options,
          adminAction, defaultBehavior, enumClass);
    }
  }
@@ -123,7 +123,7 @@
   */
  public static <E extends Enum<E>> Builder<E> createBuilder(
      AbstractManagedObjectDefinition<?, ?> d, String propertyName) {
    return new Builder<E>(d, propertyName);
    return new Builder<>(d, propertyName);
  }
  /** The enumeration class. */
@@ -143,7 +143,7 @@
    this.enumClass = enumClass;
    // Initialize the decoding map.
    this.decodeMap = new HashMap<String, E>();
    this.decodeMap = new HashMap<>();
    for (E value : EnumSet.<E> allOf(enumClass)) {
      String s = value.toString().trim().toLowerCase();
      this.decodeMap.put(s, value);