ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/util FileUtils.java
Date Fri, 04 Feb 2005 16:12:47 GMT
mbenson     2005/02/04 08:12:47

  Modified:    src/main/org/apache/tools/ant/util FileUtils.java
  Log:
  Personal taste
  
  Revision  Changes    Path
  1.87      +5 -6      ant/src/main/org/apache/tools/ant/util/FileUtils.java
  
  Index: FileUtils.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/util/FileUtils.java,v
  retrieving revision 1.86
  retrieving revision 1.87
  diff -u -r1.86 -r1.87
  --- FileUtils.java	31 Jan 2005 22:35:55 -0000	1.86
  +++ FileUtils.java	4 Feb 2005 16:12:46 -0000	1.87
  @@ -921,12 +921,11 @@
        * @since ant 1.5
        */
       public File createTempFile(String prefix, String suffix, File parentDir) {
  -
           File result = null;
  -        String parent = System.getProperty("java.io.tmpdir");
  -        if (parentDir != null) {
  -            parent = parentDir.getPath();
  -        }
  +        String parent = (parentDir == null)
  +            ? System.getProperty("java.io.tmpdir")
  +            : parentDir.getPath();
  +
           DecimalFormat fmt = new DecimalFormat("#####");
           synchronized (rand) {
               do {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message