diff options
author | Sascha Brawer <brawer@dandelis.ch> | 2002-04-30 13:59:10 +0000 |
---|---|---|
committer | Sascha Brawer <brawer@dandelis.ch> | 2002-04-30 13:59:10 +0000 |
commit | a73a5bd02f1cf19805854f1012e5f86a83349d3b (patch) | |
tree | 8f6c5cfda05dbe9b5a2ed81406cac910e748c129 | |
parent | f625da31c93875b2b571c4ec99f6eef972219268 (diff) | |
download | classpath-a73a5bd02f1cf19805854f1012e5f86a83349d3b.tar.gz |
hashCode: Docfix for pre-formatted code without asterisks in Javadoc.
-rw-r--r-- | java/util/AbstractList.java | 24 |
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) */ |