mirror of
https://github.com/songoda/SongodaCore.git
synced 2024-11-23 10:35:18 +01:00
Remove unnecessary cast
This commit is contained in:
parent
4b738fdf78
commit
bc1b613983
@ -32,7 +32,7 @@ public class DependencyLoader {
|
|||||||
private final ClassLoaderAccess parentClassLoaderAccess;
|
private final ClassLoaderAccess parentClassLoaderAccess;
|
||||||
public DependencyLoader(Plugin plugin) {
|
public DependencyLoader(Plugin plugin) {
|
||||||
//Bind loaded dependencies to the plugin's parent class loader so classes could be accessed across plugins
|
//Bind loaded dependencies to the plugin's parent class loader so classes could be accessed across plugins
|
||||||
URLClassLoader parentClassLoader = (URLClassLoader) plugin.getClass().getClassLoader().getParent();
|
ClassLoader parentClassLoader = plugin.getClass().getClassLoader().getParent();
|
||||||
this.libraryLoader = new LibraryLoader(
|
this.libraryLoader = new LibraryLoader(
|
||||||
parentClassLoader,
|
parentClassLoader,
|
||||||
new File(plugin.getDataFolder().getParentFile(), CraftaroCoreConstants.getProjectName() + "/dependencies/v" + DEPENDENCY_VERSION),
|
new File(plugin.getDataFolder().getParentFile(), CraftaroCoreConstants.getProjectName() + "/dependencies/v" + DEPENDENCY_VERSION),
|
||||||
|
Loading…
Reference in New Issue
Block a user