stevencaswell 2002/10/01 13:02:08 Modified: lang/src/java/org/apache/commons/lang/builder HashCodeBuilder.java Log: javadoc corrections: - changed <code> tag to <pre> 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. * <p> * To use this class write code as follows: - * <code> + * <pre> * public class Person { * String name; * int age; @@ -85,21 +85,21 @@ * toHashCode(); * } * } - * </code> + * </pre> * <p> * Alternatively, there is a method that uses reflection to determine * the fields to test. Because these fields are usually private, the method, - * <code>reflectionTest</code>, uses <code>Field.setAccessible</code> to change - * the visibility of the fields. This will fail under a security manager, + * <code>reflectionHashCode</code>, uses <code>Field.setAccessible</code> 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. * <p> * A typical invocation for this method would look like: - * <code> + * <pre> * public boolean hashCode(Object o) { * return HashCodeBuilder.reflectionHashCode(this); * } - * </code> + * </pre> * * @author <a href="mailto:[EMAIL PROTECTED]">Stephen Colebourne</a> * @version $Id$
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>