Author: ecki
Date: Wed Sep 23 20:11:42 2015
New Revision: 1704931
URL: http://svn.apache.org/viewvc?rev=1704931&view=rev
Log:
[VFS-549] use File.separator.
Modified:
commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/util/Os.java
commons/proper/vfs/trunk/src/changes/changes.xml
Modified: commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/util/Os.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/util/Os.java?rev=1704931&r1=1704930&r2=1704931&view=diff
==============================================================================
--- commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/util/Os.java (original)
+++ commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs2/util/Os.java Wed Sep
23 20:11:42 2015
@@ -16,6 +16,7 @@
*/
package org.apache.commons.vfs2.util;
+import java.io.File;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
@@ -83,8 +84,7 @@ public final class Os
System.getProperty("os.arch").toLowerCase(Locale.US);
private static final String OS_VERSION =
System.getProperty("os.version").toLowerCase(Locale.US);
- private static final String PATH_SEP =
- System.getProperty("path.separator");
+ private static final String PATH_SEP = File.pathSeparator;
private static final OsFamily OS_FAMILY;
private static final OsFamily[] OS_ALL_FAMILIES;
Modified: commons/proper/vfs/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/src/changes/changes.xml?rev=1704931&r1=1704930&r2=1704931&view=diff
==============================================================================
--- commons/proper/vfs/trunk/src/changes/changes.xml (original)
+++ commons/proper/vfs/trunk/src/changes/changes.xml Wed Sep 23 20:11:42 2015
@@ -26,6 +26,9 @@
<!-- <action issue="VFS-443" dev="ggregory" type="update" due-to="nickallen">
-->
<!-- [Local] Need an easy way to convert from a FileObject to a File. -->
<!-- </action> -->
+ <action issue="VFS-549" dev="ecki" type="fix">
+ Use File.seperator instead of getProperty("file.separator").
+ </action>
<action issue="VFS-567" dev="ecki" type="fix" due-to="Antonio Petrelli">
[ftp] Ignore exceptions while QUIT/disconnect.
</action>
|