Skip to content

Commit 0848bdd

Browse files
committed
Fixes
1 parent 5fd6d66 commit 0848bdd

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

eternalcore-core/src/main/java/com/eternalcode/core/injector/bean/LazyFieldBeanCandidate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public LazyFieldBeanCandidate(Supplier<Object> instance, Field field, Bean bean)
1919
return field.get(instance.get());
2020
}
2121
catch (IllegalAccessException exception) {
22-
throw new BeanException("Cannot access field " + field.getName() + " of " + instance.getClass().getName(), exception, field.getType());
22+
throw new BeanException("Cannot access field " + field.getName() + " of " + field.getType().getName(), exception, field.getType());
2323
}
2424
});
2525
this.field = field;

eternalcore-core/src/main/java/com/eternalcode/core/injector/bean/processor/BeanProcessorFactory.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,7 @@ public static BeanProcessor defaultProcessors(Plugin plugin) {
5454
}
5555
})
5656
.onProcess(Listener.class, (provider, listener, none) -> {
57-
try { //todo handle it
58-
pluginManager.registerEvents(listener, plugin);
59-
} catch (NoClassDefFoundError error) {
60-
error.printStackTrace();
61-
}
57+
pluginManager.registerEvents(listener, plugin);
6258
})
6359
.onProcess(Object.class, (provider, potentialSubscriber, none) -> {
6460
if (!SubscriberUtil.isSubscriber(potentialSubscriber.getClass())) {

0 commit comments

Comments
 (0)