You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by sc...@apache.org on 2004/01/06 22:43:08 UTC
cvs commit: jakarta-commons/collections/src/java/org/apache/commons/collections BufferUnderflowException.java
scolebourne 2004/01/06 13:43:08
Modified: collections/src/java/org/apache/commons/collections
BufferUnderflowException.java
Log:
Change superclass to NoSuchElementException for better collections integration
Revision Changes Path
1.9 +10 -6 jakarta-commons/collections/src/java/org/apache/commons/collections/BufferUnderflowException.java
Index: BufferUnderflowException.java
===================================================================
RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/BufferUnderflowException.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- BufferUnderflowException.java 9 Oct 2003 20:58:52 -0000 1.8
+++ BufferUnderflowException.java 6 Jan 2004 21:43:08 -0000 1.9
@@ -4,7 +4,7 @@
*
* The Apache Software License, Version 1.1
*
- * Copyright (c) 2002-2003 The Apache Software Foundation. All rights
+ * Copyright (c) 2002-2004 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -57,19 +57,23 @@
*/
package org.apache.commons.collections;
+import java.util.NoSuchElementException;
+
/**
* The BufferUnderflowException is used when the buffer is already empty.
+ * <p>
+ * NOTE: From version 3.0, this exception extends NoSuchElementException.
*
* @since Commons Collections 2.1
* @version $Revision$ $Date$
*
* @author Avalon
- * @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
- * @author <a href="mailto:jefft@apache.org">Jeff Turner</a>
+ * @author Berin Loritsch
+ * @author Jeff Turner
* @author Paul Jack
* @author Stephen Colebourne
*/
-public class BufferUnderflowException extends RuntimeException {
+public class BufferUnderflowException extends NoSuchElementException {
/** The root cause throwable */
private final Throwable throwable;
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org