Skip to content

Commit

Permalink
fix bug: getParamsDesc index out of range exception
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnights committed May 4, 2018
1 parent 042f735 commit 9a6c0c7
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ public static String getMethodParamDesc(Method method) {
}

public static String getParamsDesc(Object[] params) {
if (params.length == 0) {
return EMPTY_PARAM;
}

StringBuilder builder = new StringBuilder();
for (Object param : params) {
String className = getName(param.getClass());
Expand Down

0 comments on commit 9a6c0c7

Please # to comment.