javadoc corrections:
- changed <code> tag to <pre> tag around code examples for better formatting
- corrected reflection method name in explanation text
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137081 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/java/org/apache/commons/lang/builder/HashCodeBuilder.java b/src/java/org/apache/commons/lang/builder/HashCodeBuilder.java
index 54b6d6e..2344619 100644
--- a/src/java/org/apache/commons/lang/builder/HashCodeBuilder.java
+++ b/src/java/org/apache/commons/lang/builder/HashCodeBuilder.java
@@ -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,24 +85,24 @@
* 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:scolebourne@joda.org">Stephen Colebourne</a>
- * @version $Id: HashCodeBuilder.java,v 1.3 2002/09/22 09:18:32 scolebourne Exp $
+ * @version $Id: HashCodeBuilder.java,v 1.4 2002/10/01 20:02:08 stevencaswell Exp $
*/
public class HashCodeBuilder {