commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From roxspr...@apache.org
Subject cvs commit: jakarta-commons/cli/src/java/org/apache/commons/cli2/commandline WriteableCommandLineImpl.java
Date Wed, 25 Feb 2004 00:00:24 GMT
roxspring    2004/02/24 16:00:24

  Modified:    cli/src/java/org/apache/commons/cli2/commandline Tag:
                        RESEARCH_CLI_2_ROXSPRING
                        WriteableCommandLineImpl.java
  Added:       cli/src/test/org/apache/commons/cli2/commandline Tag:
                        RESEARCH_CLI_2_ROXSPRING
                        WriteableCommandLineImplTest.java
  Log:
  WriteableCommandLine test and bugfix
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.1.2.1   +35 -0     jakarta-commons/cli/src/test/org/apache/commons/cli2/commandline/Attic/WriteableCommandLineImplTest.java
  
  
  
  
  No                   revision
  No                   revision
  1.1.2.3   +1 -7      jakarta-commons/cli/src/java/org/apache/commons/cli2/commandline/Attic/WriteableCommandLineImpl.java
  
  Index: WriteableCommandLineImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/cli/src/java/org/apache/commons/cli2/commandline/Attic/WriteableCommandLineImpl.java,v
  retrieving revision 1.1.2.2
  retrieving revision 1.1.2.3
  diff -u -r1.1.2.2 -r1.1.2.3
  --- WriteableCommandLineImpl.java	17 Feb 2004 21:42:59 -0000	1.1.2.2
  +++ WriteableCommandLineImpl.java	25 Feb 2004 00:00:24 -0000	1.1.2.3
  @@ -147,13 +147,7 @@
       }
       
       public String getProperty(final String property, final String defaultValue) {
  -        final String value = properties.getProperty(property);
  -        if (value == null && defaultCommandLine != null) {
  -            return defaultCommandLine.getProperty(property);
  -        }
  -        else {
  -            return value;
  -        }
  +        return properties.getProperty(property,defaultValue);
       }
   
       public Set getProperties() {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message