Author: kkolinko
Date: Sat Dec  6 15:53:33 2014
New Revision: 1643545

URL: http://svn.apache.org/r1643545
Log:
Followup to r1643334: Replace calls to System.getProperty("path.separator") 
with File.pathSeparator
One place missed in r1643334. This is in deprecated code that we never call.

Modified:
    tomcat/tc7.0.x/trunk/java/org/apache/tomcat/util/IntrospectionUtils.java

Modified: 
tomcat/tc7.0.x/trunk/java/org/apache/tomcat/util/IntrospectionUtils.java
URL: 
http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/org/apache/tomcat/util/IntrospectionUtils.java?rev=1643545&r1=1643544&r2=1643545&view=diff
==============================================================================
--- tomcat/tc7.0.x/trunk/java/org/apache/tomcat/util/IntrospectionUtils.java 
(original)
+++ tomcat/tc7.0.x/trunk/java/org/apache/tomcat/util/IntrospectionUtils.java 
Sat Dec  6 15:53:33 2014
@@ -173,7 +173,7 @@ public final class IntrospectionUtils {
         // Find the directory where jarName.jar is located
 
         String cpath = System.getProperty("java.class.path");
-        String pathSep = System.getProperty("path.separator");
+        String pathSep = File.pathSeparator;
         StringTokenizer st = new StringTokenizer(cpath, pathSep);
         while (st.hasMoreTokens()) {
             String path = st.nextToken();
@@ -250,7 +250,7 @@ public final class IntrospectionUtils {
      * @deprecated Used only by deprecated method
      */
     @Deprecated
-    public static final String PATH_SEPARATOR = 
System.getProperty("path.separator");
+    public static final String PATH_SEPARATOR = File.pathSeparator;
 
     /**
      * Adds classpath entries from a vector of URL's to the "tc_path_add" 
System
@@ -675,7 +675,7 @@ public final class IntrospectionUtils {
     @Deprecated
     public static void addJarsFromClassPath(Vector<URL> jars, String cp)
             throws IOException, MalformedURLException {
-        String sep = System.getProperty("path.separator");
+        String sep = File.pathSeparator;
         StringTokenizer st;
         if (cp != null) {
             st = new StringTokenizer(cp, sep);



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to