ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sbaill...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Javac.java
Date Sat, 26 Jan 2002 19:16:06 GMT
sbailliez    02/01/26 11:16:06

  Modified:    src/main/org/apache/tools/ant/taskdefs Javac.java
  Log:
  - Fix unnecessary cast
  - Fix array declarators
  
  Revision  Changes    Path
  1.81      +2 -2      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Javac.java
  
  Index: Javac.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Javac.java,v
  retrieving revision 1.80
  retrieving revision 1.81
  diff -u -r1.80 -r1.81
  --- Javac.java	11 Jan 2002 14:59:40 -0000	1.80
  +++ Javac.java	26 Jan 2002 19:16:06 -0000	1.81
  @@ -592,7 +592,7 @@
           // compile lists
           resetFileLists();
           for (int i=0; i<list.length; i++) {
  -            File srcDir = (File)project.resolveFile(list[i]);
  +            File srcDir = project.resolveFile(list[i]);
               if (!srcDir.exists()) {
                   throw new BuildException("srcdir \"" + srcDir.getPath() + "\" does not
exist!", location);
               }
  @@ -643,7 +643,7 @@
        * Scans the directory looking for source files to be compiled.
        * The results are returned in the class variable compileList
        */
  -    protected void scanDir(File srcDir, File destDir, String files[]) {
  +    protected void scanDir(File srcDir, File destDir, String[] files) {
           GlobPatternMapper m = new GlobPatternMapper();
           m.setFrom("*.java");
           m.setTo("*.class");
  
  
  

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