ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/file Mkdir.java
Date Sun, 27 Jan 2002 00:26:01 GMT
donaldp     02/01/26 16:26:01

  Modified:    proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/file
                        Mkdir.java
  Log:
  Dont test booleans againstr true/false in condition expressions
  
  Fixing a audit violation
  
  Revision  Changes    Path
  1.4       +2 -2      jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/file/Mkdir.java
  
  Index: Mkdir.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/file/Mkdir.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Mkdir.java	1 Jan 2002 09:02:17 -0000	1.3
  +++ Mkdir.java	27 Jan 2002 00:26:01 -0000	1.4
  @@ -44,8 +44,8 @@
   
           if( !m_dir.exists() )
           {
  -            boolean result = m_dir.mkdirs();
  -            if( result == false )
  +            final boolean result = m_dir.mkdirs();
  +            if( !result )
               {
                   final String message = "Directory " + m_dir.getAbsolutePath() + " creation
was not " +
                       "successful for an unknown reason";
  
  
  

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