fix: 修复私有方法调用权限问题

Signed-off-by: 502647092 <admin@yumc.pw>
merge/1/MERGE
502647092 2017-02-08 20:28:57 +08:00
parent 1b18fdcb32
commit 9539ef92d0
1 changed files with 1 additions and 0 deletions

View File

@ -103,6 +103,7 @@ public class CommandInfo {
public static CommandInfo parse(Method method, Object origin) {
Cmd command = method.getAnnotation(Cmd.class);
if (command != null) {
method.setAccessible(true);
Help help = method.getAnnotation(Help.class);
Async async = method.getAnnotation(Async.class);
Sort sort = method.getAnnotation(Sort.class);