Skip to content

Commit

Permalink
fix return type check
Browse files Browse the repository at this point in the history
  • Loading branch information
Knerio committed Nov 29, 2024
1 parent 81f4295 commit f573637
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ private Object executeMethod(IndexedMethod<E, ID, R> indexedMethod, Object[] arg
case FILTER:
findIterable = repositoryMeta.createIterable(Filters.and((Bson) arguments[arguments.length - 1], filter), methodName);

if (method.getReturnType().isAssignableFrom(Collection.class)) {
if (Collection.class.isAssignableFrom(method.getReturnType())) {
return findIterable.into(new ArrayList<>());
}
return findIterable.first();
Expand Down

0 comments on commit f573637

Please sign in to comment.