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/java/org/apache/antlib/cvslib CVSPass.java
Date Wed, 19 Dec 2001 10:29:40 GMT
donaldp     01/12/19 02:29:40

  Modified:    proposal/myrmidon/src/java/org/apache/antlib/cvslib
                        CVSPass.java
  Log:
  Made the shifts into a static variable
  
  Revision  Changes    Path
  1.3       +3 -3      jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/cvslib/CVSPass.java
  
  Index: CVSPass.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/java/org/apache/antlib/cvslib/CVSPass.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- CVSPass.java	2001/12/17 09:12:48	1.2
  +++ CVSPass.java	2001/12/19 10:29:40	1.3
  @@ -20,7 +20,7 @@
    * CVSLogin Adds an new entry to a CVS password file
    *
    * @author <a href="jeff@custommonkey.org">Jeff Martin</a>
  - * @version $Revision: 1.2 $ $Date: 2001/12/17 09:12:48 $
  + * @version $Revision: 1.3 $ $Date: 2001/12/19 10:29:40 $
    */
   public class CVSPass
       extends AbstractTask
  @@ -48,7 +48,7 @@
       /**
        * Array contain char conversion data
        */
  -    private final char[] m_shifts =
  +    private static final char[] c_shifts =
           {
               0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
               16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
  @@ -177,7 +177,7 @@
           final StringBuffer sb = new StringBuffer();
           for( int i = 0; i < size; i++ )
           {
  -            sb.append( m_shifts[ password.charAt( i ) ] );
  +            sb.append( c_shifts[ password.charAt( i ) ] );
           }
           return sb.toString();
       }
  
  
  

--
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