bug fix
This commit is contained in:
parent
dbc5bdf7bb
commit
c1a9241511
|
@ -22,6 +22,7 @@ public class ClassHelper {
|
|||
URLClassLoader classLoader = (URLClassLoader) Thread
|
||||
.currentThread().getContextClassLoader();
|
||||
URL[] urls = classLoader.getURLs();
|
||||
|
||||
for (URL url : urls) {
|
||||
if (url.getProtocol().equals("file")) {
|
||||
File file = new File(url.getFile());
|
||||
|
@ -69,7 +70,8 @@ public class ClassHelper {
|
|||
classNames.add(className);
|
||||
}
|
||||
} else if (filePath.endsWith(".jar")) {
|
||||
classNames.addAll(getClassNameFromJar(packageName, true, new File(filePath)));
|
||||
classNames.addAll(getClassNameFromJar(packageName, true,
|
||||
new File(filePath)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue