You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/10/22 12:51:37 UTC

svn commit: r828651 - /commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/Directory.java

Author: mturk
Date: Thu Oct 22 10:51:37 2009
New Revision: 828651

URL: http://svn.apache.org/viewvc?rev=828651&view=rev
Log:
Use Path object instead path String

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=828651&r1=828650&r2=828651&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:51:37 2009
@@ -40,7 +40,7 @@
     /* Directory descriptor object
      */
     private Descriptor dd;
-    private String     path;
+    private Path       path;
 
     /**
      * Close this file.
@@ -61,8 +61,8 @@
     public Directory(Path path)
         throws FileNotFoundException, IOException, SecurityException
     {
-        this.path = path.toString();
-        dd = open0(this.path);
+        this.path = path;
+        dd = open0(this.path.toString());
     }
 
     private static native FileInfo read1(Descriptor dd)
@@ -76,7 +76,7 @@
     {
         FileInfo info = read1(dd);
         if (info != null) {
-            info.Path = path;
+            info.Path = path.toString();
             if (resolve)
                 info.update();
         }