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(); } }