avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/cli/src/java/org/apache/avalon/excalibur/cli CLOptionDescriptor.java
Date Tue, 19 Mar 2002 11:07:07 GMT
donaldp     02/03/19 03:07:07

  Modified:    cli/src/java/org/apache/avalon/excalibur/cli
                        CLOptionDescriptor.java
  Log:
  Dont chain calls if you can help it
  
  Revision  Changes    Path
  1.8       +14 -7     jakarta-avalon-excalibur/cli/src/java/org/apache/avalon/excalibur/cli/CLOptionDescriptor.java
  
  Index: CLOptionDescriptor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/cli/src/java/org/apache/avalon/excalibur/cli/CLOptionDescriptor.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- CLOptionDescriptor.java	16 Mar 2002 00:04:26 -0000	1.7
  +++ CLOptionDescriptor.java	19 Mar 2002 11:07:07 -0000	1.8
  @@ -49,8 +49,7 @@
       {
           this( name, flags, id, description,
                 ( ( flags & CLOptionDescriptor.DUPLICATES_ALLOWED ) > 0 )
  -              ? new int[]{}
  -              : new int[]{id} );
  +              ? new int[ 0 ] : new int[]{id} );
       }
   
       /**
  @@ -136,10 +135,18 @@
        */
       public final String toString()
       {
  -        return
  -            new StringBuffer()
  -            .append( "[OptionDescriptor " ).append( m_name )
  -            .append( ", " ).append( m_id ).append( ", " ).append( m_flags )
  -            .append( ", " ).append( m_description ).append( " ]" ).toString();
  +        final StringBuffer sb = new StringBuffer();
  +        sb.append( "[OptionDescriptor " );
  +        sb.append( m_name );
  +        sb.append( "[OptionDescriptor " );
  +        sb.append( m_name );
  +        sb.append( ", " );
  +        sb.append( m_id );
  +        sb.append( ", " );
  +        sb.append( m_flags );
  +        sb.append( ", " );
  +        sb.append( m_description );
  +        sb.append( " ]" );
  +        return sb.toString();
       }
   }
  
  
  

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


Mime
View raw message