You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by ve...@apache.org on 2009/02/11 21:04:28 UTC
svn commit: r743472 -
/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/util/EmptyIterator.java
Author: veithen
Date: Wed Feb 11 20:04:28 2009
New Revision: 743472
URL: http://svn.apache.org/viewvc?rev=743472&view=rev
Log:
Implementations of Iterator#next() should throw NoSuchElementExceptions, not UnsupportedOperationExceptions.
Modified:
webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/util/EmptyIterator.java
Modified: webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/util/EmptyIterator.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/util/EmptyIterator.java?rev=743472&r1=743471&r2=743472&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/util/EmptyIterator.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/util/EmptyIterator.java Wed Feb 11 20:04:28 2009
@@ -20,6 +20,7 @@
package org.apache.axiom.om.impl.util;
import java.util.Iterator;
+import java.util.NoSuchElementException;
public class EmptyIterator implements Iterator {
public void remove() {
@@ -32,7 +33,7 @@
}
public Object next() {
- throw new UnsupportedOperationException();
+ throw new NoSuchElementException();
}
}