git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270973 13f79535-47bb-0310-9956-ffa450edef68master
| @@ -17,26 +17,29 @@ import java.util.List; | |||||
| */ | */ | ||||
| public class ConfigTest1 | 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 ) | public boolean equals( final Object obj ) | ||||
| { | { | ||||
| ConfigTest1 test = (ConfigTest1)obj; | |||||
| final ConfigTest1 test = (ConfigTest1)obj; | |||||
| if( !DefaultConfigurerTest.equals( m_someProp, test.m_someProp ) ) | if( !DefaultConfigurerTest.equals( m_someProp, test.m_someProp ) ) | ||||
| { | { | ||||
| return false; | return false; | ||||
| } | } | ||||
| if( !m_propList.equals( test.m_propList ) ) | |||||
| else if( !m_propList.equals( test.m_propList ) ) | |||||
| { | { | ||||
| return false; | return false; | ||||
| } | } | ||||
| if( !DefaultConfigurerTest.equals( m_content, test.m_content ) ) | |||||
| else if( !DefaultConfigurerTest.equals( m_content, test.m_content ) ) | |||||
| { | { | ||||
| return false; | return false; | ||||
| } | } | ||||
| return true; | |||||
| else | |||||
| { | |||||
| return true; | |||||
| } | |||||
| } | } | ||||
| public void setSomeProp( final String value ) | public void setSomeProp( final String value ) | ||||
| @@ -17,26 +17,29 @@ import java.util.List; | |||||
| */ | */ | ||||
| public class ConfigTest1 | 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 ) | public boolean equals( final Object obj ) | ||||
| { | { | ||||
| ConfigTest1 test = (ConfigTest1)obj; | |||||
| final ConfigTest1 test = (ConfigTest1)obj; | |||||
| if( !DefaultConfigurerTest.equals( m_someProp, test.m_someProp ) ) | if( !DefaultConfigurerTest.equals( m_someProp, test.m_someProp ) ) | ||||
| { | { | ||||
| return false; | return false; | ||||
| } | } | ||||
| if( !m_propList.equals( test.m_propList ) ) | |||||
| else if( !m_propList.equals( test.m_propList ) ) | |||||
| { | { | ||||
| return false; | return false; | ||||
| } | } | ||||
| if( !DefaultConfigurerTest.equals( m_content, test.m_content ) ) | |||||
| else if( !DefaultConfigurerTest.equals( m_content, test.m_content ) ) | |||||
| { | { | ||||
| return false; | return false; | ||||
| } | } | ||||
| return true; | |||||
| else | |||||
| { | |||||
| return true; | |||||
| } | |||||
| } | } | ||||
| public void setSomeProp( final String value ) | public void setSomeProp( final String value ) | ||||