Skip to content

Commit

Permalink
修复 #1613 问题,当方法名为get开头,返回值为void类型时报ArrayIndexOutOfBoundsException 的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
wetool19 authored and wenshao committed Jul 5, 2023
1 parent 0dd214c commit 3b17f01
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ boolean record = BeanUtils.isRecord(objectClass);

Class<?> returnType = method.getReturnType();
// skip function
if (isFunction(returnType)) {
if (isFunction(returnType) || returnType == Void.TYPE) {
return;
}

Expand Down

0 comments on commit 3b17f01

Please sign in to comment.