]> source.dussan.org Git - pf4j.git/commitdiff
Fix the path separator used in the SingletonExtensionFactoryTest.java (#435)
authorRationalityFrontline <rationalityfrontline@gmail.com>
Sun, 4 Apr 2021 09:25:06 +0000 (17:25 +0800)
committerGitHub <noreply@github.com>
Sun, 4 Apr 2021 09:25:06 +0000 (12:25 +0300)
pf4j/src/test/java/org/pf4j/SingletonExtensionFactoryTest.java

index 104403407cf2961fb36fcd5bda5b213d660e4259..739a76f08d8a3fdb569010df2326fd84d0500e91 100644 (file)
@@ -74,7 +74,7 @@ public class SingletonExtensionFactoryTest {
     private URL[] getClasspathReferences() throws MalformedURLException {
         String classpathProperty = System.getProperty("java.class.path");
 
-        String[] classpaths = classpathProperty.split(":");
+        String[] classpaths = classpathProperty.split(File.pathSeparator);
         URL[] uris = new URL[classpaths.length];
 
         for (int index = 0; index < classpaths.length; index++) {