myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m..@apache.org
Subject svn commit: r512337 - /myfaces/shared/branches/3_0_0/core/src/main/java/org/apache/myfaces/shared/util/NullEnumeration.java
Date Tue, 27 Feb 2007 17:45:45 GMT
Author: mbr
Date: Tue Feb 27 09:45:44 2007
New Revision: 512337

URL: http://svn.apache.org/viewvc?view=rev&rev=512337
Log:
Enumeration must throw NoSuchElementException

Modified:
    myfaces/shared/branches/3_0_0/core/src/main/java/org/apache/myfaces/shared/util/NullEnumeration.java

Modified: myfaces/shared/branches/3_0_0/core/src/main/java/org/apache/myfaces/shared/util/NullEnumeration.java
URL: http://svn.apache.org/viewvc/myfaces/shared/branches/3_0_0/core/src/main/java/org/apache/myfaces/shared/util/NullEnumeration.java?view=diff&rev=512337&r1=512336&r2=512337
==============================================================================
--- myfaces/shared/branches/3_0_0/core/src/main/java/org/apache/myfaces/shared/util/NullEnumeration.java
(original)
+++ myfaces/shared/branches/3_0_0/core/src/main/java/org/apache/myfaces/shared/util/NullEnumeration.java
Tue Feb 27 09:45:44 2007
@@ -16,6 +16,7 @@
 package org.apache.myfaces.shared.util;
 
 import java.util.Enumeration;
+import java.util.NoSuchElementException;
 
 /**
  * Enumeration without elements
@@ -39,6 +40,6 @@
 
     public Object nextElement()
     {
-        throw new UnsupportedOperationException("NullEnumeration has no elements");
+        throw new NoSuchElementException("NullEnumeration has no elements");
     }
 }



Mime
View raw message