directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r574314 - /directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/EmptyEnumeration.java
Date Mon, 10 Sep 2007 17:45:17 GMT
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();
     }



Mime
View raw message