donaldp     2002/06/08 17:31:40

  Modified:    containerkit/src/java/org/apache/excalibur/containerkit/metainfo
                        ComponentInfo.java
  Log:
  Remove unrefereced EmptyEnumeration
  
  Revision  Changes    Path
  1.5       +4 -33     
jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/metainfo/ComponentInfo.java
  
  Index: ComponentInfo.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/metainfo/ComponentInfo.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ComponentInfo.java        8 Jun 2002 21:33:51 -0000       1.4
  +++ ComponentInfo.java        9 Jun 2002 00:31:40 -0000       1.5
  @@ -7,9 +7,6 @@
    */
   package org.apache.excalibur.containerkit.metainfo;
   
  -import java.util.Enumeration;
  -
  -
   /**
    * This class contains the meta information about a particular
    * component type. It describes;
  @@ -23,16 +20,10 @@
    * </ul>
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Peter Donald</a>
  - * @version $Revision: 1.4 $ $Date: 2002/06/08 21:33:51 $
  + * @version $Revision: 1.5 $ $Date: 2002/06/09 00:31:40 $
    */
   public class ComponentInfo
   {
  -
  -   /**
  -    * Intrernal utility referecne holding a static empty enumeration.
  -    */
  -    static final EmptyEnumeration EMPTY_ENUMERATION = new EmptyEnumeration();
  -
       private final ComponentDescriptor m_descriptor;
       private final ServiceDescriptor[] m_services;
       private final DependencyDescriptor[] m_dependencies;
  @@ -110,33 +101,13 @@
       {
           for( int i = 0; i < m_services.length; i++ )
           {
  -            if( m_services[ i ].getName().equals( name ) )
  +            final ServiceReference service =
  +                m_services[ i ].getServiceReference();
  +            if( service.getName().equals( name ) )
               {
                   return m_services[ i ];
               }
           }
           return null;
  -    }
  -
  -    private static final class EmptyEnumeration implements Enumeration
  -    {
  -       /**
  -        * Always returns the FALSE value.
  -        * @return FALSE
  -        */
  -        public boolean hasMoreElements()
  -        {
  -            return false;
  -        }
  -
  -       /**
  -        * Reeturns the next object in the enumeration.  The impementation 
alway
  -        * returns null.
  -        * @return a null value.
  -        */
  -        public Object nextElement()
  -        {
  -            return null;
  -        }
       }
   }
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to