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/23 19:26:01 UTC
svn commit: r829137 -
/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/Path.java
Author: mturk
Date: Fri Oct 23 17:26:00 2009
New Revision: 829137
URL: http://svn.apache.org/viewvc?rev=829137&view=rev
Log:
Fix typos
Modified:
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/Path.java
Modified: commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/Path.java
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/Path.java?rev=829137&r1=829136&r2=829137&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/Path.java (original)
+++ commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/io/Path.java Fri Oct 23 17:26:00 2009
@@ -201,6 +201,7 @@
path = fpath(child);
else
path = merge(parent.path, child, false);
+ type = parent.type;
}
/**
@@ -221,7 +222,7 @@
this.path = fpath(path);
}
- public static native int compare0(String path, String other);
+ private static native int compare0(String path, String other);
public int compareTo(Path other)
{
if (other == null)
@@ -230,7 +231,7 @@
return compare0(path, other.path);
}
- public static native String native0(String path)
+ private static native String native0(String path)
throws Exception;
/**
* Get this abstract pathname platform native string.
@@ -282,6 +283,14 @@
}
}
+ public Path getPath(final String path)
+ throws IllegalArgumentException
+ {
+ if (path == null || path.length() == 0)
+ return this;
+ return new Path(merge(this.path, path, false), type);
+ }
+ /*
public static Path getPath(final String path)
throws NullPointerException, IllegalArgumentException
{
@@ -293,7 +302,7 @@
throw new IllegalArgumentException(ex.getMessage());
}
}
-
+ */
public boolean isAbsolute()
{
if (type == CANONICAL)