From 53efc338e58bb0c888bf7e4fd9bffe0a68e5ea11 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Tue, 25 Aug 2015 07:52:56 +0000
Subject: [PATCH] AutoRefactor'ed Modification.java

---
 opendj-server-legacy/src/main/java/org/opends/server/types/Modification.java |   87 ++++++++++++-------------------------------
 1 files changed, 24 insertions(+), 63 deletions(-)

diff --git a/opendj-server-legacy/src/main/java/org/opends/server/types/Modification.java b/opendj-server-legacy/src/main/java/org/opends/server/types/Modification.java
index 7e844ab..c7f9df7 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/types/Modification.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/types/Modification.java
@@ -30,8 +30,7 @@
 
 /**
  * This class defines a data structure for storing and interacting
- * with a modification that may be requested of an entry in the
- * Directory Server.
+ * with a modification that may be requested of an entry in the Directory Server.
  */
 @org.opends.server.types.PublicAPI(
      stability=org.opends.server.types.StabilityLevel.UNCOMMITTED,
@@ -52,13 +51,10 @@
   /** 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  modificationType  The modification type for this modification.
    * @param  attribute         The attribute for this modification.
    */
   public Modification(ModificationType modificationType,
@@ -70,18 +66,14 @@
     isInternal = false;
   }
 
-
-
   /**
    * Creates a new modification with the provided information.
    *
-   * @param  modificationType  The modification type for this
-   *                           modification.
+   * @param  modificationType  The modification type for this modification.
    * @param  attribute         The attribute for this modification.
-   * @param  isInternal        Indicates whether this is an internal
-   *                           modification and therefore should not
-   *                           be subject to no-user-modification and
-   *                           related checks.
+   * @param  isInternal        Indicates whether this is an internal modification
+   *                           and therefore should not be subject to
+   *                           no-user-modification and related checks.
    */
   public Modification(ModificationType modificationType,
                       Attribute attribute, boolean isInternal)
@@ -91,8 +83,6 @@
     this.isInternal       = isInternal;
   }
 
-
-
   /**
    * Retrieves the modification type for this modification.
    *
@@ -103,13 +93,10 @@
     return modificationType;
   }
 
-
-
   /**
    * Specifies the modification type for this modification.
    *
-   * @param  modificationType  The modification type for this
-   *                           modification.
+   * @param  modificationType  The modification type for this modification.
    */
   @org.opends.server.types.PublicAPI(
        stability=org.opends.server.types.StabilityLevel.PRIVATE,
@@ -121,8 +108,6 @@
     this.modificationType = modificationType;
   }
 
-
-
   /**
    * Retrieves the attribute for this modification.
    *
@@ -133,8 +118,6 @@
     return attribute;
   }
 
-
-
   /**
    * Specifies the attribute for this modification.
    *
@@ -150,51 +133,39 @@
     this.attribute = attribute;
   }
 
-
-
   /**
-   * Indicates whether this is modification was created by internal
-   * processing and should not be subject to no-user-modification and
-   * related checks.
+   * Indicates whether this is modification was created by internal processing
+   * and should not be subject to no-user-modification and related checks.
    *
-   * @return  <CODE>true</CODE> if this is an internal modification,
-   *          or <CODE>false</CODE> if not.
+   * @return  {@code true} if this is an internal modification, or {@code false} if not.
    */
   public boolean isInternal()
   {
     return isInternal;
   }
 
-
-
   /**
-   * Specifies whether this modification was created by internal
-   * processing and should not be subject to no-user-modification and
-   * related checks.
+   * Specifies whether this modification was created by internal processing
+   * and should not be subject to no-user-modification and related checks.
    *
-   * @param  isInternal  Specifies whether this modification was
-   *                     created by internal processing and should
-   *                     not be subject to no-user-modification and
-   *                     related checks.
+   * @param  isInternal  Specifies whether this modification was created
+   *                     by internal processing and should not be subject to
+   *                     no-user-modification and related checks.
    */
   public void setInternal(boolean isInternal)
   {
     this.isInternal = isInternal;
   }
 
-
-
   /**
-   * Indicates whether the provided object is equal to this
-   * modification.  It will only be considered equal if the object is
-   * a modification with the same modification type and an attribute
-   * that is equal to this modification.
+   * Indicates whether the provided object is equal to this modification.
+   * It will only be considered equal if the object is a modification
+   * with the same modification type and an attribute that is equal to this modification.
    *
    * @param  o  The object for which to make the determination.
-   *
-   * @return  <CODE>true</CODE> if the provided object is a
-   *          modification that is equal to this modification, or
-   *          <CODE>false</CODE> if not.
+   * @return  {@code true} if the provided object is a
+   *          modification that is equal to this modification,
+   *          or {@code false} if not.
    */
   @Override
   public boolean equals(Object o)
@@ -213,12 +184,9 @@
         && attribute.equals(m.attribute);
   }
 
-
-
   /**
    * Retrieves the hash code for this modification.  The hash code
-   * returned will be the hash code for the attribute included in this
-   * modification.
+   * returned will be the hash code for the attribute included in this modification.
    *
    * @return  The hash code for this modification.
    */
@@ -228,8 +196,6 @@
     return attribute.hashCode();
   }
 
-
-
   /**
    * Retrieves a one-line string representation of this modification.
    *
@@ -243,14 +209,10 @@
     return buffer.toString();
   }
 
-
-
   /**
-   * Appends a one-line representation of this modification to the
-   * provided buffer.
+   * Appends a one-line representation of this modification to the provided buffer.
    *
-   * @param  buffer  The buffer to which the information should be
-   *                 appended.
+   * @param  buffer  The buffer to which the information should be appended.
    */
   public void toString(StringBuilder buffer)
   {
@@ -260,4 +222,3 @@
     buffer.append(attribute);
   }
 }
-

--
Gitblit v1.10.0