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/util/depend Dependencies.java
Date Tue, 08 Jan 2002 22:16:54 GMT
sbailliez    02/01/08 14:16:54

  Modified:    src/main/org/apache/tools/ant/util/depend Dependencies.java
  Log:
  Fix bad coding style.
  then/else parts of if statement and loop body must always been enclosed
  in a block statement.
  
  Revision  Changes    Path
  1.3       +6 -3      jakarta-ant/src/main/org/apache/tools/ant/util/depend/Dependencies.java
  
  Index: Dependencies.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/util/depend/Dependencies.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Dependencies.java	29 Nov 2001 13:08:33 -0000	1.2
  +++ Dependencies.java	8 Jan 2002 22:16:54 -0000	1.3
  @@ -95,8 +95,9 @@
       public void visitConstantNameAndType(ConstantNameAndType obj) {}
       
       public void visitConstantPool(ConstantPool obj) {
  -        if (verbose)
  +        if (verbose) {
               System.out.println("visit ConstantPool");
  +        }
           this.constantPool = obj;
   
           // visit constants
  @@ -203,8 +204,9 @@
   
               for (int i=o; i < args.length; i++) {
                   String fileName = args[i].substring(0, args[i].length() - ".class".length());
  -                if (base != null && fileName.startsWith(base))
  +                if (base != null && fileName.startsWith(base)) {
                       fileName = fileName.substring(base.length());
  +                }
                   newSet.add(fileName);
               }
               set.addAll(newSet);
  @@ -228,8 +230,9 @@
                   applyFilter(newSet, new Filter() {
                           public boolean accept(Object object) {
                               String fileName = object + ".class";
  -                            if (base != null)
  +                            if (base != null) {
                                   fileName = base + fileName;
  +                            }
                               return new File(fileName).exists();
                           }
                       });
  
  
  

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