sbailliez    02/01/08 14:39:36

  Modified:    src/main/org/apache/tools/ant/taskdefs RecorderEntry.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.5       +4 -2      
jakarta-ant/src/main/org/apache/tools/ant/taskdefs/RecorderEntry.java
  
  Index: RecorderEntry.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/RecorderEntry.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- RecorderEntry.java        15 Dec 2001 00:24:34 -0000      1.4
  +++ RecorderEntry.java        8 Jan 2002 22:39:36 -0000       1.5
  @@ -121,8 +121,9 @@
        * @param state true for on, false for off, null for no change.
        */
       public void setRecordState( Boolean state ) {
  -        if ( state != null )
  +        if ( state != null ) {
               record = state.booleanValue();
  +        }
       }
   
       public void buildStarted(BuildEvent event) {
  @@ -194,8 +195,9 @@
       }
   
       public void setMessageOutputLevel(int level) {
  -        if ( level >= Project.MSG_ERR  &&  level <= Project.MSG_DEBUG )
  +        if ( level >= Project.MSG_ERR  &&  level <= Project.MSG_DEBUG ) {
               loglevel = level;
  +        }
       }
   
       public void setOutputPrintStream(PrintStream output) {
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to