avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcconn...@apache.org
Subject cvs commit: avalon/meta/api/src/java/org/apache/avalon/meta/info Type.java
Date Thu, 08 Apr 2004 05:49:54 GMT
mcconnell    2004/04/07 22:49:54

  Modified:    meta/api/src/java/org/apache/avalon/meta/info Type.java
  Log:
  Fix equality test.
  
  Revision  Changes    Path
  1.7       +4 -4      avalon/meta/api/src/java/org/apache/avalon/meta/info/Type.java
  
  Index: Type.java
  ===================================================================
  RCS file: /home/cvs/avalon/meta/api/src/java/org/apache/avalon/meta/info/Type.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- Type.java	8 Apr 2004 05:43:31 -0000	1.6
  +++ Type.java	8 Apr 2004 05:49:54 -0000	1.7
  @@ -414,6 +414,7 @@
       */
       public boolean equals(Object other)
       {
  +System.out.println( "0" );
           if( ! (other instanceof Type ) )
               return false;
   
  @@ -430,13 +431,12 @@
               
           if( ! m_context.equals( t.m_context ) )
               return false;
  -            
  +
           for( int i=0; i<m_loggers.length; i++ )
           {
               if( ! m_loggers[i].equals( t.m_loggers[i] ) )
                   return false;
           }
  -        
           for( int i=0; i<m_services.length; i++ )
           {
               if( ! m_services[i].equals( t.m_services[i] ) )
  @@ -449,12 +449,12 @@
           }
           for( int i=0; i<m_stages.length; i++ )
           {
  -            if( m_stages[i].equals( t.m_stages[i] ) )
  +            if( ! m_stages[i].equals( t.m_stages[i] ) )
                   return false;
           }
           for( int i=0; i<m_extensions.length; i++ )
           {
  -            if( m_extensions[i].equals( t.m_extensions[i] ) )
  +            if( ! m_extensions[i].equals( t.m_extensions[i] ) )
                   return false;
           }
           return true;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message