Skip to content

Commit

Permalink
修复基本类型数组下出现强制错误.
Browse files Browse the repository at this point in the history
  • Loading branch information
nieqiurong committed Mar 26, 2024
1 parent c57cf78 commit 1ee6b08
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ protected Collection<Object> toCollection(Object value) {
if (value == null) {
return Collections.emptyList();
}
if (ArrayUtils.isArray(value)) {
if (ArrayUtils.isArray(value) && !value.getClass().getComponentType().isPrimitive()) {
return Arrays.asList((Object[]) value);
} else if (Collection.class.isAssignableFrom(value.getClass())) {
return (Collection<Object>) value;
Expand Down

0 comments on commit 1ee6b08

Please sign in to comment.