Forgot to attach. Gary
> -----Original Message-----
> From: Gary Gregory
> Sent: Sunday, January 04, 2004 17:57
> To: 'Jakarta Commons Developers List'
> Subject: RE: [collections] What is left to do for 3.0?
>
> Please find attached some Javadoc patches (& 1 code patch). I can commit
> those if you want but I do not want to step on any toes/changes so close
> to a release, there are more fixes like the attached to do but that's all
> the time I have right now.
>
> Gary
>
> > -----Original Message-----
> > From: Stephen Colebourne [mailto:[EMAIL PROTECTED]]
> > Sent: Sunday, January 04, 2004 11:50
> > To: Jakarta Commons Developers List
> > Subject: [collections] What is left to do for 3.0?
> >
> > The [collections] CVS has been tidied up prior to a 3.0 release today.
> The
> > CVS now only contains those classes to be released in a 3.0. These are
> all
> > I
> > know of:
> >
> > - Should PriorityQueue be deprecated? (Buffer effectively replaces it)
> >
> > - Add CaseInsensitiveMap?
> >
> > Do we just RC1 and then release, or do we need a public Beta? (I favour
> > the
> > former)
> >
> > Stephen
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
Index: BeanMap.java
===================================================================
retrieving revision 1.25
diff -u -r1.25 BeanMap.java
--- BeanMap.java 5 Dec 2003 20:23:57 -0000 1.25
+++ BeanMap.java 5 Jan 2004 01:53:48 -0000
@@ -519,7 +519,7 @@
}
public Object next() {
Object key = iter.next();
- return get( (String) key );
+ return get( key );
}
public void remove() {
throw new UnsupportedOperationException( "remove() not supported for
BeanMap" );
@@ -780,7 +780,7 @@
* to that type
* @throws InstantiationException if the constructor found with
* reflection raises it
- * @throws InvocationTargetExcetpion if the constructor found with
+ * @throws InvocationTargetException if the constructor found with
* reflection raises it
* @throws IllegalAccessException never
* @throws IllegalArgumentException never
Index: EnumerationUtils.java
===================================================================
retrieving revision 1.1
diff -u -r1.1 EnumerationUtils.java
--- EnumerationUtils.java 28 Oct 2003 18:47:47 -0000 1.1
+++ EnumerationUtils.java 5 Jan 2004 01:53:48 -0000
@@ -84,7 +84,7 @@
* created. The new list is returned.</p>
*
* @param enumeration the enumeration to traverse, which should not be
<code>null</code>.
- * @throws <code>NullPointerException</code> if the enumeration parameter is
<code>null</code>.
+ * @throws NullPointerException if the enumeration parameter is <code>null</code>.
*/
public static List toList(Enumeration enumeration) {
return IteratorUtils.toList(new EnumerationIterator(enumeration));
Index: MapIterator.java
===================================================================
retrieving revision 1.4
diff -u -r1.4 MapIterator.java
--- MapIterator.java 2 Dec 2003 23:51:49 -0000 1.4
+++ MapIterator.java 5 Jan 2004 01:53:51 -0000
@@ -99,7 +99,7 @@
* Gets the next <em>key</em> from the <code>Map</code>.
*
* @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();
Index: OrderedIterator.java
===================================================================
retrieving revision 1.1
diff -u -r1.1 OrderedIterator.java
--- OrderedIterator.java 1 Dec 2003 22:48:59 -0000 1.1
+++ OrderedIterator.java 5 Jan 2004 01:53:51 -0000
@@ -82,7 +82,7 @@
* 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();
Index: buffer/UnboundedFifoBuffer.java
===================================================================
retrieving revision 1.4
diff -u -r1.4 UnboundedFifoBuffer.java
--- buffer/UnboundedFifoBuffer.java 4 Jan 2004 18:56:37 -0000 1.4
+++ buffer/UnboundedFifoBuffer.java 5 Jan 2004 01:53:52 -0000
@@ -160,7 +160,7 @@
* @param obj the element to add
* @return true, always
* @throws NullPointerException if the given element is null
- * @throws BufferOverflowException if this buffer is full
+ * @throws org.apache.commons.collections.BufferOverflowException if this buffer
is full
*/
public boolean add(final Object obj) {
if (obj == null) {
Index: functors/FunctorUtils.java
===================================================================
retrieving revision 1.3
diff -u -r1.3 FunctorUtils.java
--- functors/FunctorUtils.java 23 Nov 2003 23:25:33 -0000 1.3
+++ functors/FunctorUtils.java 5 Jan 2004 01:53:56 -0000
@@ -91,7 +91,6 @@
* Validate the predicates to ensure that all is well.
*
* @param predicates the predicates to validate
- * @return the validated predicates
*/
static void validate(Predicate[] predicates) {
if (predicates == null) {
@@ -108,7 +107,6 @@
* Validate the predicates to ensure that all is well.
*
* @param predicates the predicates to validate
- * @return the validated predicates
*/
static void validateMin2(Predicate[] predicates) {
if (predicates == null) {
@@ -169,7 +167,6 @@
* Validate the closures to ensure that all is well.
*
* @param closures the closures to validate
- * @return the validated closures
*/
static void validate(Closure[] closures) {
if (closures == null) {
Index: map/AbstractHashedMap.java
===================================================================
retrieving revision 1.6
diff -u -r1.6 AbstractHashedMap.java
--- map/AbstractHashedMap.java 3 Jan 2004 05:15:00 -0000 1.6
+++ map/AbstractHashedMap.java 5 Jan 2004 01:53:56 -0000
@@ -480,7 +480,6 @@
*
* @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 @@
* @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++;
Index: map/LRUMap.java
===================================================================
retrieving revision 1.5
diff -u -r1.5 LRUMap.java
--- map/LRUMap.java 2 Jan 2004 01:36:52 -0000 1.5
+++ map/LRUMap.java 5 Jan 2004 01:53:56 -0000
@@ -194,7 +194,6 @@
*
* @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 @@
* @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 @@
* @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--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
