donaldp 02/01/26 16:25:11
Modified: proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/file
Copy.java
Log:
Made loop counter a simple variable rather than a complex value
Fixing a audit violation
Revision Changes Path
1.17 +2 -1
jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/file/Copy.java
Index: Copy.java
===================================================================
RCS file:
/home/cvs/jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/file/Copy.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- Copy.java 26 Jan 2002 02:08:10 -0000 1.16
+++ Copy.java 27 Jan 2002 00:25:11 -0000 1.17
@@ -227,7 +227,8 @@
}
// deal with the filesets
- for( int i = 0; i < m_filesets.size(); i++ )
+ final int size = m_filesets.size();
+ for( int i = 0; i < size; i++ )
{
final FileSet fileSet = (FileSet)m_filesets.get( i );
final DirectoryScanner scanner =
ScannerUtil.getDirectoryScanner( fileSet );
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>