From a5f7ccbe7d296783a847bad8518ccb061de7f85c Mon Sep 17 00:00:00 2001 From: Matthew Jason Benson Date: Fri, 4 Feb 2005 16:12:46 +0000 Subject: [PATCH] Personal taste git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277598 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/util/FileUtils.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/org/apache/tools/ant/util/FileUtils.java b/src/main/org/apache/tools/ant/util/FileUtils.java index 09523ff4c..f3b6c68fc 100644 --- a/src/main/org/apache/tools/ant/util/FileUtils.java +++ b/src/main/org/apache/tools/ant/util/FileUtils.java @@ -921,12 +921,11 @@ public class FileUtils { * @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 {