Skip to content

Commit a1d1936

Browse files
committed
强迫症受够了,”注释掉的代码“
1 parent cb2d3f4 commit a1d1936

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

src/main/java/center/xzy/qb/messagesync/executor/CommandHandler.java

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,19 @@ public static CommandHandler getInstance() {
4242
* 注意要使用小写,与发送者的指令进行匹配
4343
*/
4444
private void initHandler() {
45-
// Reflections reflections = new Reflections("center.xzy.qb.messagesync.commands.impl");
46-
// Set<Class<? extends ICommand>> subTypesOf = reflections.getSubTypesOf(ICommand.class);
47-
//// Main.instance.getLogger().warning(subTypesOf.toArray().toString());
48-
// subTypesOf.forEach(aClass -> {
49-
// try {
50-
// ICommand command = aClass.newInstance();
51-
// registerCommand(command);
52-
// } catch (InstantiationException | IllegalAccessException e) {
53-
// throw new RuntimeException(e);
54-
// }
55-
// });
45+
/*
46+
Reflections reflections = new Reflections("center.xzy.qb.messagesync.commands.impl");
47+
Set<Class<? extends ICommand>> subTypesOf = reflections.getSubTypesOf(ICommand.class);
48+
// Main.instance.getLogger().warning(subTypesOf.toArray().toString());
49+
subTypesOf.forEach(aClass -> {
50+
try {
51+
ICommand command = aClass.newInstance();
52+
registerCommand(command);
53+
} catch (InstantiationException | IllegalAccessException e) {
54+
throw new RuntimeException(e);
55+
}
56+
});
57+
*/
5658

5759
registerCommand(new enable());
5860
registerCommand(new disable());

0 commit comments

Comments
 (0)