mirror of
https://github.com/shadowfacts/jinput-arm64.git
synced 2026-01-08 17:59:57 +01:00
Merge remote-tracking branch 'origin/master' into jenkinsfile
This commit is contained in:
commit
dc75289f96
|
|
@ -157,7 +157,7 @@ class DefaultControllerEnvironment extends ControllerEnvironment {
|
|||
if(!loadedPlugins.contains(className)) {
|
||||
log.fine("Loading: " + className);
|
||||
Class ceClass = Class.forName(className);
|
||||
ControllerEnvironment ce = (ControllerEnvironment) ceClass.newInstance();
|
||||
ControllerEnvironment ce = (ControllerEnvironment) ceClass.getDeclaredConstructor().newInstance();
|
||||
if(ce.isSupported()) {
|
||||
addControllers(ce.getControllers());
|
||||
loadedPlugins.add(ce.getClass().getName());
|
||||
|
|
@ -207,7 +207,7 @@ class DefaultControllerEnvironment extends ControllerEnvironment {
|
|||
envClasses[i].getName()
|
||||
+" loaded by "+envClasses[i].getClassLoader());
|
||||
ControllerEnvironment ce = (ControllerEnvironment)
|
||||
envClasses[i].newInstance();
|
||||
envClasses[i].getDeclaredConstructor().newInstance();
|
||||
if(ce.isSupported()) {
|
||||
addControllers(ce.getControllers());
|
||||
loadedPlugins.add(ce.getClass().getName());
|
||||
|
|
|
|||
Loading…
Reference in a new issue