commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject cvs commit: jakarta-commons/lang/src/java/org/apache/commons/lang/builder EqualsBuilder.java
Date Wed, 15 Jan 2003 20:54:00 GMT
bayard      2003/01/15 12:54:00

  Modified:    lang/src/java/org/apache/commons/lang/builder
                        EqualsBuilder.java
  Log:
  Javadoc example java fixed.
  Submitted by:	Christopher M. Judd <cjudd@columbus.rr.com>
  
  Revision  Changes    Path
  1.9       +11 -11    jakarta-commons/lang/src/java/org/apache/commons/lang/builder/EqualsBuilder.java
  
  Index: EqualsBuilder.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/builder/EqualsBuilder.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- EqualsBuilder.java	23 Dec 2002 00:20:31 -0000	1.8
  +++ EqualsBuilder.java	15 Jan 2003 20:54:00 -0000	1.9
  @@ -100,10 +100,10 @@
    * <p> A typical invocation for this method would look like:</p>
    * <pre>
    * public boolean equals(Object o) {
  - *   return EqualsBuilder.reflectionEquals(this, obj);
  + *   return EqualsBuilder.reflectionEquals(this, o);
    * }
    * </pre>
  - * 
  + *
    * @author <a href="mailto:steve.downey@netfolio.com">Steve Downey</a>
    * @author Stephen Colebourne
    * @since 1.0
  @@ -127,7 +127,7 @@
       }
   
       //-------------------------------------------------------------------------
  -    
  +
       /**
        * <p>This method uses reflection to determine if the two Object are equal.</p>
        *
  @@ -140,7 +140,7 @@
        * fields, and not part of the value of the Object.</p>
        *
        * <p>Static fields will not be tested.</p>
  -     * 
  +     *
        * @param lhs  Left Hand Side
        * @param rhs  Right Hand Side
        * @return <code>true</code> if the two Objects have tested equals.
  @@ -162,13 +162,13 @@
        * derived fields, and not part of the value of the Object.</p>
        *
        * <p>Static fields will not be tested.</p>
  -     * 
  +     *
        * @param lhs  Left Hand Side
        * @param rhs  Right Hand Side
        * @param testTransients  whether to include transient fields
        * @return <code>true</code> if the two Objects have tested equals.
        */
  -    public static boolean reflectionEquals(Object lhs, Object rhs, 
  +    public static boolean reflectionEquals(Object lhs, Object rhs,
               boolean testTransients) {
           if (lhs == rhs) {
               return true;
  @@ -201,7 +201,7 @@
       }
   
       //-------------------------------------------------------------------------
  -    
  +
       /**
        * <p>Adds the result of super.equals() to this builder.</p>
        *
  @@ -215,9 +215,9 @@
           isEquals = superEquals;
           return this;
       }
  -    
  +
       //-------------------------------------------------------------------------
  -    
  +
       /**
        * <p>Test if two <code>Object</code>s are equal using their
        * <code>equals</code> method.</p>
  @@ -239,7 +239,7 @@
           }
           Class lhsClass = lhs.getClass();
           if (!lhsClass.isArray()) {
  -            //the simple case, not an array, just test the element 
  +            //the simple case, not an array, just test the element
               isEquals = lhs.equals(rhs);
           } else {
               //'Switch' on type of array, to dispatch to the correct handler
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message