Browse Source

Personal taste

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277598 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 21 years ago
parent
commit
a5f7ccbe7d
1 changed files with 4 additions and 5 deletions
  1. +4
    -5
      src/main/org/apache/tools/ant/util/FileUtils.java

+ 4
- 5
src/main/org/apache/tools/ant/util/FileUtils.java View File

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


Loading…
Cancel
Save