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

Jean-Noël Rouvignac
18.55.2015 fa1fb5f8ca6791f4cf614cf52aa4842345e64e12
Modification.java: code cleanup
1 files modified
22 ■■■■ changed files
opendj-server-legacy/src/main/java/org/opends/server/types/Modification.java 22 ●●●● patch | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/server/types/Modification.java
@@ -41,29 +41,23 @@
{
  /** The attribute for this modification. */
  private Attribute attribute;
  /** The modification type for this modification. */
  private ModificationType modificationType;
  /**
   * Indicates whether this modification was generated by internal processing
   * and therefore should not be subject to no-user-modification and related checks.
   */
  private boolean isInternal;
  /** The modification type for this modification. */
  private ModificationType modificationType;
  /**
   * Creates a new modification with the provided information.
   *
   * @param  modificationType  The modification type for this modification.
   * @param  attribute         The attribute for this modification.
   */
  public Modification(ModificationType modificationType,
                      Attribute attribute)
  public Modification(ModificationType modificationType, Attribute attribute)
  {
    this.modificationType = modificationType;
    this.attribute        = attribute;
    isInternal = false;
    this(modificationType, attribute, false);
  }
  /**
@@ -75,8 +69,7 @@
   *                           and therefore should not be subject to
   *                           no-user-modification and related checks.
   */
  public Modification(ModificationType modificationType,
                      Attribute attribute, boolean isInternal)
  public Modification(ModificationType modificationType, Attribute attribute, boolean isInternal)
  {
    this.modificationType = modificationType;
    this.attribute        = attribute;
@@ -216,9 +209,6 @@
   */
  public void toString(StringBuilder buffer)
  {
    buffer.append("Modification(");
    buffer.append(modificationType);
    buffer.append(", ");
    buffer.append(attribute);
    buffer.append("Modification(").append(modificationType).append(", ").append(attribute);
  }
}