Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 55932 invoked from network); 1 Oct 2002 20:02:16 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 1 Oct 2002 20:02:16 -0000 Received: (qmail 3046 invoked by uid 97); 1 Oct 2002 20:03:00 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org Received: (qmail 3026 invoked by uid 97); 1 Oct 2002 20:03:00 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 3004 invoked by uid 97); 1 Oct 2002 20:02:59 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Date: 1 Oct 2002 20:02:08 -0000 Message-ID: <20021001200208.74021.qmail@icarus.apache.org> From: stevencaswell@apache.org To: jakarta-commons-cvs@apache.org Subject: cvs commit: jakarta-commons/lang/src/java/org/apache/commons/lang/builder HashCodeBuilder.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N stevencaswell 2002/10/01 13:02:08 Modified: lang/src/java/org/apache/commons/lang/builder HashCodeBuilder.java Log: javadoc corrections: - changed tag to
 tag around code examples for better formatting
  - corrected reflection method name in explanation text
  
  Revision  Changes    Path
  1.4       +7 -7      jakarta-commons/lang/src/java/org/apache/commons/lang/builder/HashCodeBuilder.java
  
  Index: HashCodeBuilder.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/builder/HashCodeBuilder.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- HashCodeBuilder.java	22 Sep 2002 09:18:32 -0000	1.3
  +++ HashCodeBuilder.java	1 Oct 2002 20:02:08 -0000	1.4
  @@ -68,7 +68,7 @@
    * used in the hashCode method. 
    * 

* To use this class write code as follows: - * + *

    * public class Person {
    *   String name;
    *   int age;
  @@ -85,21 +85,21 @@
    *       toHashCode();
    *   }
    * }
  - * 
  + * 
*

* Alternatively, there is a method that uses reflection to determine * the fields to test. Because these fields are usually private, the method, - * reflectionTest, uses Field.setAccessible to change - * the visibility of the fields. This will fail under a security manager, + * reflectionHashCode, uses Field.setAccessible to + * change the visibility of the fields. This will fail under a security manager, * unless the appropriate permissions are set. It is also slower than testing * explicitly. *

* A typical invocation for this method would look like: - * + *

    * public boolean hashCode(Object o) {
    *   return HashCodeBuilder.reflectionHashCode(this);
    * }
  - * 
  + * 
* * @author Stephen Colebourne * @version $Id$ -- To unsubscribe, e-mail: For additional commands, e-mail: