Change exception variable

java-rewrite
Hammy 3 years ago
parent 720761e7a0
commit 144a7c2b44

@ -214,8 +214,8 @@ public class SlashCommandLoader implements CommandLoader {
ExecutableMethod<Object, Object> executableMethod = null; ExecutableMethod<Object, Object> executableMethod = null;
try { try {
executableMethod = beanContext.getExecutableMethod(clazz, methodName, SlashCommandEvent.class); executableMethod = beanContext.getExecutableMethod(clazz, methodName, SlashCommandEvent.class);
} catch (NoSuchMethodException e) { } catch (NoSuchMethodException nsme) {
e.printStackTrace(); nsme.printStackTrace();
} }
commandMap.put(commandPath, new ImmutablePair<>(beanInstance, executableMethod)); commandMap.put(commandPath, new ImmutablePair<>(beanInstance, executableMethod));

Loading…
Cancel
Save