From: RationalityFrontline Date: Sun, 4 Apr 2021 09:25:06 +0000 (+0800) Subject: Fix the path separator used in the SingletonExtensionFactoryTest.java (#435) X-Git-Tag: release-3.7.0~15 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=575abd034fd3bfbeff60f1ddbd9deb88c6b741e6;p=pf4j.git Fix the path separator used in the SingletonExtensionFactoryTest.java (#435) --- diff --git a/pf4j/src/test/java/org/pf4j/SingletonExtensionFactoryTest.java b/pf4j/src/test/java/org/pf4j/SingletonExtensionFactoryTest.java index 1044034..739a76f 100644 --- a/pf4j/src/test/java/org/pf4j/SingletonExtensionFactoryTest.java +++ b/pf4j/src/test/java/org/pf4j/SingletonExtensionFactoryTest.java @@ -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++) {