You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2007/09/10 19:45:17 UTC
svn commit: r574314 -
/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/EmptyEnumeration.java
Author: elecharny
Date: Mon Sep 10 10:45:17 2007
New Revision: 574314
URL: http://svn.apache.org/viewvc?rev=574314&view=rev
Log:
This class can now be used with a generic type
Modified:
directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/EmptyEnumeration.java
Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/EmptyEnumeration.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/EmptyEnumeration.java?rev=574314&r1=574313&r2=574314&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/EmptyEnumeration.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/EmptyEnumeration.java Mon Sep 10 10:45:17 2007
@@ -34,7 +34,7 @@
* @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
* @version $Revision$
*/
-public class EmptyEnumeration implements NamingEnumeration
+public class EmptyEnumeration<T> implements NamingEnumeration<T>
{
/**
@@ -61,7 +61,7 @@
*
* @see javax.naming.NamingEnumeration#next()
*/
- public Object next() throws NamingException
+ public T next() throws NamingException
{
throw new NoSuchElementException();
}
@@ -83,7 +83,7 @@
*
* @see java.util.Enumeration#nextElement()
*/
- public Object nextElement()
+ public T nextElement()
{
throw new NoSuchElementException();
}