summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Brawer <brawer@dandelis.ch>2002-04-30 13:59:10 +0000
committerSascha Brawer <brawer@dandelis.ch>2002-04-30 13:59:10 +0000
commita73a5bd02f1cf19805854f1012e5f86a83349d3b (patch)
tree8f6c5cfda05dbe9b5a2ed81406cac910e748c129
parentf625da31c93875b2b571c4ec99f6eef972219268 (diff)
downloadclasspath-a73a5bd02f1cf19805854f1012e5f86a83349d3b.tar.gz
hashCode: Docfix for pre-formatted code without asterisks in Javadoc.
-rw-r--r--java/util/AbstractList.java24
1 files changed, 13 insertions, 11 deletions
diff --git a/java/util/AbstractList.java b/java/util/AbstractList.java
index 1c2d1de65..c9eccdeaf 100644
--- a/java/util/AbstractList.java
+++ b/java/util/AbstractList.java
@@ -237,20 +237,22 @@ public abstract class AbstractList extends AbstractCollection implements List
}
/**
- * Obtain a hash code for this list. In order to obey the general contract of
- * the hashCode method of class Object, this value is calculated as follows:
- * <pre>
- * hashCode = 1;
- * Iterator i = list.iterator();
- * while (i.hasNext())
- * {
- * Object obj = i.next();
- * hashCode = 31 * hashCode + (obj == null ? 0 : obj.hashCode());
- * }
- * </pre>
+ * Obtains a hash code for this list. In order to obey the general
+ * contract of the hashCode method of class Object, this value is
+ * calculated as follows:
+ *
+<pre>hashCode = 1;
+Iterator i = list.iterator();
+while (i.hasNext())
+{
+ Object obj = i.next();
+ hashCode = 31 * hashCode + (obj == null ? 0 : obj.hashCode());
+}</pre>
+ *
* This ensures that the general contract of Object.hashCode() is adhered to.
*
* @return the hash code of this list
+ *
* @see Object#hashCode()
* @see #equals(Object)
*/