From 05b6c75bd3c51ec7092fdc453434f2f80dfb035f Mon Sep 17 00:00:00 2001
From: Stephen Colebourne
null
.
- * @throws NullPointerException
if the enumeration parameter is null
.
+ * @throws NullPointerException if the enumeration parameter is null
.
*/
public static List toList(Enumeration enumeration) {
return IteratorUtils.toList(new EnumerationIterator(enumeration));
diff --git a/src/java/org/apache/commons/collections/MapIterator.java b/src/java/org/apache/commons/collections/MapIterator.java
index 4910266e5..758c1a963 100644
--- a/src/java/org/apache/commons/collections/MapIterator.java
+++ b/src/java/org/apache/commons/collections/MapIterator.java
@@ -1,10 +1,10 @@
/*
- * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/MapIterator.java,v 1.4 2003/12/02 23:51:49 scolebourne Exp $
+ * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/MapIterator.java,v 1.5 2004/01/05 21:37:13 scolebourne Exp $
* ====================================================================
*
* The Apache Software License, Version 1.1
*
- * Copyright (c) 2001-2003 The Apache Software Foundation. All rights
+ * Copyright (c) 2003-2004 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -82,7 +82,7 @@ import java.util.Iterator;
*
*
* @since Commons Collections 3.0
- * @version $Revision: 1.4 $ $Date: 2003/12/02 23:51:49 $
+ * @version $Revision: 1.5 $ $Date: 2004/01/05 21:37:13 $
*
* @author Stephen Colebourne
*/
@@ -99,7 +99,7 @@ public interface MapIterator extends Iterator {
* Gets the next key from the Map
.
*
* @return the next key in the iteration
- * @throws NoSuchElementException if the iteration is finished
+ * @throws java.util.NoSuchElementException if the iteration is finished
*/
Object next();
diff --git a/src/java/org/apache/commons/collections/OrderedIterator.java b/src/java/org/apache/commons/collections/OrderedIterator.java
index a7584053c..1bb68a23d 100644
--- a/src/java/org/apache/commons/collections/OrderedIterator.java
+++ b/src/java/org/apache/commons/collections/OrderedIterator.java
@@ -1,10 +1,10 @@
/*
- * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/OrderedIterator.java,v 1.1 2003/12/01 22:48:59 scolebourne Exp $
+ * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/OrderedIterator.java,v 1.2 2004/01/05 21:37:13 scolebourne Exp $
* ====================================================================
*
* The Apache Software License, Version 1.1
*
- * Copyright (c) 2001-2003 The Apache Software Foundation. All rights
+ * Copyright (c) 2003-2004 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -65,7 +65,7 @@ import java.util.Iterator;
* This iterator allows both forward and reverse iteration through the collection.
*
* @since Commons Collections 3.0
- * @version $Revision: 1.1 $ $Date: 2003/12/01 22:48:59 $
+ * @version $Revision: 1.2 $ $Date: 2004/01/05 21:37:13 $
*
* @author Stephen Colebourne
*/
@@ -82,7 +82,7 @@ public interface OrderedIterator extends Iterator {
* Gets the previous element from the collection.
*
* @return the previous key in the iteration
- * @throws NoSuchElementException if the iteration is finished
+ * @throws java.util.NoSuchElementException if the iteration is finished
*/
Object previous();
diff --git a/src/java/org/apache/commons/collections/map/AbstractHashedMap.java b/src/java/org/apache/commons/collections/map/AbstractHashedMap.java
index 67a454057..b71da4cb7 100644
--- a/src/java/org/apache/commons/collections/map/AbstractHashedMap.java
+++ b/src/java/org/apache/commons/collections/map/AbstractHashedMap.java
@@ -1,5 +1,5 @@
/*
- * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/map/AbstractHashedMap.java,v 1.6 2004/01/03 05:15:00 psteitz Exp $
+ * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/map/AbstractHashedMap.java,v 1.7 2004/01/05 21:32:10 scolebourne Exp $
* ====================================================================
*
* The Apache Software License, Version 1.1
@@ -88,7 +88,7 @@ import org.apache.commons.collections.MapIterator;
* need for unusual subclasses is here.
*
* @since Commons Collections 3.0
- * @version $Revision: 1.6 $ $Date: 2004/01/03 05:15:00 $
+ * @version $Revision: 1.7 $ $Date: 2004/01/05 21:32:10 $
*
* @author java util HashMap
* @author Stephen Colebourne
@@ -480,7 +480,6 @@ public class AbstractHashedMap implements IterableMap {
*
* @param entry the entry to update
* @param newValue the new value to store
- * @return value the previous value
*/
protected void updateEntry(HashEntry entry, Object newValue) {
entry.setValue(newValue);
@@ -518,7 +517,6 @@ public class AbstractHashedMap implements IterableMap {
* @param hashCode the hash code of the key to add
* @param key the key to add
* @param value the value to add
- * @return the value previously mapped to this key, null if none
*/
protected void addMapping(int hashIndex, int hashCode, Object key, Object value) {
modCount++;
diff --git a/src/java/org/apache/commons/collections/map/LRUMap.java b/src/java/org/apache/commons/collections/map/LRUMap.java
index a699a5fb0..734f5f61d 100644
--- a/src/java/org/apache/commons/collections/map/LRUMap.java
+++ b/src/java/org/apache/commons/collections/map/LRUMap.java
@@ -1,5 +1,5 @@
/*
- * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/map/LRUMap.java,v 1.5 2004/01/02 01:36:52 psteitz Exp $
+ * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//collections/src/java/org/apache/commons/collections/map/LRUMap.java,v 1.6 2004/01/05 21:32:47 scolebourne Exp $
* ====================================================================
*
* The Apache Software License, Version 1.1
@@ -83,7 +83,7 @@ import org.apache.commons.collections.BoundedMap;
* ResettableIterator
and calling reset()
.
*
* @since Commons Collections 3.0
- * @version $Revision: 1.5 $ $Date: 2004/01/02 01:36:52 $
+ * @version $Revision: 1.6 $ $Date: 2004/01/05 21:32:47 $
*
* @author James Strachan
* @author Morgan Delagrange
@@ -194,7 +194,6 @@ public class LRUMap extends AbstractLinkedMap
*
* @param entry the entry to update
* @param newValue the new value to store
- * @return value the previous value
*/
protected void updateEntry(HashEntry entry, Object newValue) {
moveToMRU((LinkEntry) entry); // handles modCount
@@ -210,7 +209,6 @@ public class LRUMap extends AbstractLinkedMap
* @param hashCode the hash code of the key to add
* @param key the key to add
* @param value the value to add
- * @return the value previously mapped to this key, null if none
*/
protected void addMapping(int hashIndex, int hashCode, Object key, Object value) {
if (size >= maxSize && removeLRU(header.before)) {
@@ -228,7 +226,6 @@ public class LRUMap extends AbstractLinkedMap
* @param hashCode the hash code of the key to add
* @param key the key to add
* @param value the value to add
- * @return the value previously mapped to this key, null if none
*/
protected void reuseMapping(LinkEntry entry, int hashIndex, int hashCode, Object key, Object value) {
// find the entry before the entry specified in the hash table