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

Jean-Noel Rouvignac
24.41.2015 e7cac727a9231ff3602e61a4ea678e0463eb0e39
opendj-server-legacy/src/main/java/org/opends/server/admin/client/spi/PropertySet.java
@@ -51,16 +51,16 @@
   */
  private static final class MyProperty<T> implements Property<T> {
    // The active set of values.
    /** The active set of values. */
    private final SortedSet<T> activeValues;
    // The definition associated with this property.
    /** The definition associated with this property. */
    private final PropertyDefinition<T> d;
    // The default set of values (read-only).
    /** The default set of values (read-only). */
    private final SortedSet<T> defaultValues;
    // The pending set of values.
    /** The pending set of values. */
    private final SortedSet<T> pendingValues;
@@ -105,27 +105,21 @@
    /**
     * {@inheritDoc}
     */
    /** {@inheritDoc} */
    public SortedSet<T> getActiveValues() {
      return Collections.unmodifiableSortedSet(activeValues);
    }
    /**
     * {@inheritDoc}
     */
    /** {@inheritDoc} */
    public SortedSet<T> getDefaultValues() {
      return defaultValues;
    }
    /**
     * {@inheritDoc}
     */
    /** {@inheritDoc} */
    public SortedSet<T> getEffectiveValues() {
      SortedSet<T> values = getPendingValues();
@@ -138,36 +132,28 @@
    /**
     * {@inheritDoc}
     */
    /** {@inheritDoc} */
    public SortedSet<T> getPendingValues() {
      return Collections.unmodifiableSortedSet(pendingValues);
    }
    /**
     * {@inheritDoc}
     */
    /** {@inheritDoc} */
    public PropertyDefinition<T> getPropertyDefinition() {
      return d;
    }
    /**
     * {@inheritDoc}
     */
    /** {@inheritDoc} */
    public boolean isEmpty() {
      return pendingValues.isEmpty();
    }
    /**
     * {@inheritDoc}
     */
    /** {@inheritDoc} */
    public boolean isModified() {
      return activeValues.size() != pendingValues.size()
          || !activeValues.containsAll(pendingValues);
@@ -189,9 +175,7 @@
    /**
     * {@inheritDoc}
     */
    /** {@inheritDoc} */
    @Override
    public String toString() {
      return getEffectiveValues().toString();
@@ -199,15 +183,13 @@
    /**
     * {@inheritDoc}
     */
    /** {@inheritDoc} */
    public boolean wasEmpty() {
      return activeValues.isEmpty();
    }
  }
  // The properties.
  /** The properties. */
  private final Map<PropertyDefinition<?>, MyProperty<?>> properties;
@@ -268,9 +250,7 @@
  /**
   * {@inheritDoc}
   */
  /** {@inheritDoc} */
  @Override
  public String toString() {
    StringBuilder builder = new StringBuilder();