ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant/proposal/myrmidon/src/testcases/org/apache/myrmidon/components/configurer ConfigTest1.java
Date Sun, 27 Jan 2002 23:53:15 GMT
donaldp     02/01/27 15:53:15

  Modified:    proposal/myrmidon/src/testcases/org/apache/myrmidon/components/configurer
                        ConfigTest1.java
  Log:
  
  
  Revision  Changes    Path
  1.2       +10 -7     jakarta-ant/proposal/myrmidon/src/testcases/org/apache/myrmidon/components/configurer/ConfigTest1.java
  
  Index: ConfigTest1.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/testcases/org/apache/myrmidon/components/configurer/ConfigTest1.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ConfigTest1.java	22 Jan 2002 11:16:02 -0000	1.1
  +++ ConfigTest1.java	27 Jan 2002 23:53:15 -0000	1.2
  @@ -17,26 +17,29 @@
    */
   public class ConfigTest1
   {
  -    String m_someProp;
  -    List m_propList = new ArrayList();
  -    String m_content;
  +    private String m_someProp;
  +    private List m_propList = new ArrayList();
  +    private String m_content;
   
       public boolean equals( final Object obj )
       {
  -        ConfigTest1 test = (ConfigTest1)obj;
  +        final ConfigTest1 test = (ConfigTest1)obj;
           if( !DefaultConfigurerTest.equals( m_someProp, test.m_someProp ) )
           {
               return false;
           }
  -        if( !m_propList.equals( test.m_propList ) )
  +        else if( !m_propList.equals( test.m_propList ) )
           {
               return false;
           }
  -        if( !DefaultConfigurerTest.equals( m_content, test.m_content ) )
  +        else if( !DefaultConfigurerTest.equals( m_content, test.m_content ) )
           {
               return false;
           }
  -        return true;
  +        else
  +        {
  +            return true;
  +        }
       }
   
       public void setSomeProp( final String value )
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message