Codebase list jd-gui / 0e504af
Fix ClassCastException emmanue1 5 years ago
2 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
3636 searchJarAndMetaInf(urls, extDirectory);
3737
3838 if (!urls.isEmpty()) {
39 URL[] array = (URL[])urls.toArray();
39 URL[] array = urls.toArray(new URL[urls.size()]);
4040 Arrays.sort(array, URL_COMPARATOR);
4141 extensionClassLoader = new URLClassLoader(array, ExtensionService.class.getClassLoader());
4242 }
4343 }
4444 } catch (Exception e) {
45 ExceptionUtil.printStackTrace(e);
45 assert ExceptionUtil.printStackTrace(e);
4646 }
4747
4848 extensionClassLoader = ExtensionService.class.getClassLoader();
3636 try {
3737 return new URI(uri.getScheme(), uri.getHost(), path, query, fragment);
3838 } catch (URISyntaxException e) {
39 ExceptionUtil.printStackTrace(e);
39 assert ExceptionUtil.printStackTrace(e);
4040 }
4141 }
4242 }