Skip to content

Commit

Permalink
模块管理的detail命令中增加模块的@command注解信息透出
Browse files Browse the repository at this point in the history
  • Loading branch information
oldmanpushcart committed Oct 15, 2022
1 parent 1449091 commit 7a96d08
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,8 @@ private List<String> getCommandsByModuleClz(Class<?> clz) {
if (clz == null) {
return Collections.emptyList();
}
List<Method> methods = MethodUtils.getMethodsListWithAnnotation(clz, Command.class);
List<String> commands = new ArrayList<String>();
for (Method method : methods) {
final List<String> commands = new ArrayList<String>();
for (final Method method : MethodUtils.getMethodsListWithAnnotation(clz, Command.class)) {
final Command commandAnnotation = method.getAnnotation(Command.class);
if (null == commandAnnotation) {
continue;
Expand Down

0 comments on commit 7a96d08

Please sign in to comment.