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/optional ManifestFile.java
Date Tue, 08 Jan 2002 22:46:05 GMT
sbailliez    02/01/08 14:46:05

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional
                        ManifestFile.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/taskdefs/optional/ManifestFile.java
  
  Index: ManifestFile.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/ManifestFile.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ManifestFile.java	28 Oct 2001 21:30:18 -0000	1.2
  +++ ManifestFile.java	8 Jan 2002 22:46:05 -0000	1.3
  @@ -53,8 +53,9 @@
        */
       public void execute() throws BuildException {
           checkParameters();
  -        if (isUpdate(currentMethod))
  +        if (isUpdate(currentMethod)) {
               readFile();
  +        }
   
           executeOperation();
           writeFile();
  @@ -184,8 +185,9 @@
                           c = fis.read();
                           if (c == -1){
                               stop =true;
  -                        } else
  +                        } else {
                               buffer.append( (char) c);
  +                        }
                       }
                       fis.close();
                       StringTokenizer lineTokens = getLineTokens (buffer);
  @@ -312,8 +314,9 @@
               Entry ent = new Entry();
               boolean result = false;
               int res = ent.compare (this,(Entry) obj );
  -            if (res==0)
  +            if (res==0) {
                   result =true;
  +            }
   
               return result;
           }
  
  
  

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