commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jke...@apache.org
Subject cvs commit: jakarta-commons/cli/src/java/org/apache/commons/cli PosixParser.java
Date Wed, 19 Jun 2002 21:31:16 GMT
jkeyes      2002/06/19 14:31:16

  Modified:    cli/src/java/org/apache/commons/cli PosixParser.java
  Log:
  use String.valueOf instead of + to create the option
  
  Revision  Changes    Path
  1.2       +4 -4      jakarta-commons/cli/src/java/org/apache/commons/cli/PosixParser.java
  
  Index: PosixParser.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/cli/src/java/org/apache/commons/cli/PosixParser.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- PosixParser.java	16 Jun 2002 23:00:58 -0000	1.1
  +++ PosixParser.java	19 Jun 2002 21:31:16 -0000	1.2
  @@ -145,7 +145,7 @@
                       
                       for ( int i = 1 ; i < eachArg.length() ; ++i ) {
                           String optStr = "-" + eachArg.charAt(i);
  -                        Option opt    = (Option) options.getOption( "" + eachArg.charAt(i)
);
  +                        Option opt    = (Option) options.getOption( String.valueOf( eachArg.charAt(i)
) );
                           
                           if ( (opt != null) && (opt.hasArg()) ) {
                               // If the current option has an argument,
  
  
  

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


Mime
View raw message