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

Jean-Noel Rouvignac
27.18.2015 fb22a3d183d0fbde920275e3e14138a27151e734
opendj-config/src/main/java/org/forgerock/opendj/config/dsconfig/SetPropSubCommandHandler.java
@@ -246,7 +246,7 @@
        while (true) {
            // Interactively set properties if applicable.
            if (app.isInteractive()) {
                SortedSet<PropertyDefinition<?>> properties = new TreeSet<PropertyDefinition<?>>();
                SortedSet<PropertyDefinition<?>> properties = new TreeSet<>();
                for (PropertyDefinition<?> pd : d.getAllPropertyDefinitions()) {
                    if (pd.hasOption(PropertyOption.HIDDEN)) {
                        continue;
@@ -678,8 +678,8 @@
        ManagedObject<?> child = result.getValue();
        ManagedObjectDefinition<?, ?> d = child.getManagedObjectDefinition();
        Map<String, ModificationType> lastModTypes = new HashMap<String, ModificationType>();
        Map<PropertyDefinition, Set> changes = new HashMap<PropertyDefinition, Set>();
        Map<String, ModificationType> lastModTypes = new HashMap<>();
        Map<PropertyDefinition, Set> changes = new HashMap<>();
        // Reset properties.
        for (String m : propertyResetArgument.getValues()) {
@@ -848,7 +848,7 @@
                }
                break;
            case SET:
                values = new TreeSet<T>(pd);
                values = new TreeSet<>(pd);
                values.add(value);
                break;
            }