Author: mturk
Date: Thu Oct 22 10:48:16 2009
New Revision: 828649

URL: http://svn.apache.org/viewvc?rev=828649&view=rev
Log:
Return Path instead File

Modified:
    
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/Directory.java

Modified: 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/Directory.java
URL: 
http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/Directory.java?rev=828649&r1=828648&r2=828649&view=diff
==============================================================================
--- 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/Directory.java
 (original)
+++ 
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/Directory.java
 Thu Oct 22 10:48:16 2009
@@ -173,11 +173,10 @@
      * @throws SecurityException if Write access to the directory specified
      *         by {...@code path} is denied.
      */
-    public static File createTemp(Path path, String prefix)
+    public static Path createTemp(Path path, String prefix)
         throws IOException, SecurityException
     {
-        Path tmp = tmpdir0(path.toString(), prefix);
-        return new File(tmp.toString(), FileType.DIR);
+        return tmpdir0(path.toString(), prefix);
     }
 
     /**
@@ -191,11 +190,10 @@
      * @throws SecurityException if Write access to the system temporary
      *         directory is denied.
      */
-    public static File createTemp(String prefix)
+    public static Path createTemp(String prefix)
         throws IOException, SecurityException
     {
-        Path tmp = tmpdir0(null, prefix);
-        return new File(tmp.toString(), FileType.DIR);
+        return tmpdir0(null, prefix);
     }
 
     private static        Path tmpDir;


Reply via email to