Browse Source

Made the shifts into a static variable

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270256 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 23 years ago
parent
commit
405e0bd8e1
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      proposal/myrmidon/src/java/org/apache/antlib/cvslib/CVSPass.java

+ 2
- 2
proposal/myrmidon/src/java/org/apache/antlib/cvslib/CVSPass.java View File

@@ -48,7 +48,7 @@ public class CVSPass
/**
* 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 @@ public class CVSPass
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();
}


Loading…
Cancel
Save