mbenson 2005/01/07 09:56:49
Modified: src/main/org/apache/tools/ant/taskdefs Length.java
Log:
Remove an unnecessary method call.
Revision Changes Path
1.4 +1 -2 ant/src/main/org/apache/tools/ant/taskdefs/Length.java
Index: Length.java
===================================================================
RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/Length.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- Length.java 7 Jan 2005 17:36:17 -0000 1.3
+++ Length.java 7 Jan 2005 17:56:49 -0000 1.4
@@ -155,8 +155,7 @@
String[] f = ds.getIncludedFiles();
for (int j = 0; j < f.length; j++) {
File file = FileUtils.getFileUtils().resolveFile(basedir, f[j]);
- if (!(included.contains(file))) {
- included.add(file);
+ if (included.add(file)) {
h.handle(file);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
|