Skip to content

Commit

Permalink
Fix ClassCastException
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanue1 committed Apr 11, 2019
1 parent ee820d1 commit 0e504af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ protected ExtensionService() {
searchJarAndMetaInf(urls, extDirectory);

if (!urls.isEmpty()) {
URL[] array = (URL[])urls.toArray();
URL[] array = urls.toArray(new URL[urls.size()]);
Arrays.sort(array, URL_COMPARATOR);
extensionClassLoader = new URLClassLoader(array, ExtensionService.class.getClassLoader());
}
}
} catch (Exception e) {
ExceptionUtil.printStackTrace(e);
assert ExceptionUtil.printStackTrace(e);
}

extensionClassLoader = ExtensionService.class.getClassLoader();
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/org/jd/gui/util/net/UriUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public static URI createURI(API api, Collection<Indexes> collectionOfIndexes, Co
try {
return new URI(uri.getScheme(), uri.getHost(), path, query, fragment);
} catch (URISyntaxException e) {
ExceptionUtil.printStackTrace(e);
assert ExceptionUtil.printStackTrace(e);
}
}
}
Expand Down

0 comments on commit 0e504af

Please sign in to comment.