commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r828651 - /commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/Directory.java
Date Thu, 22 Oct 2009 10:51:37 GMT
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();
         }



Mime
View raw message