Skip to content

Commit 28933e4

Browse files
committed
Add missing @Nullable annotations to JpaSpecificationExecutor.findBy(…).
Closes #3974
1 parent fd3137c commit 28933e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/JpaSpecificationExecutor.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,8 @@ default <S extends T, R> R findBy(PredicateSpecification<T> spec,
240240
* @since 3.0
241241
* @throws InvalidDataAccessApiUsageException if the query function returns the {@link FluentQuery} instance.
242242
*/
243-
<S extends T, R> R findBy(Specification<T> spec, Function<? super SpecificationFluentQuery<S>, R> queryFunction);
243+
<S extends T, R extends @Nullable Object> R findBy(Specification<T> spec,
244+
Function<? super SpecificationFluentQuery<S>, R> queryFunction);
244245

245246
/**
246247
* Extension to {@link FetchableFluentQuery} allowing slice results and pagination with a custom count

0 commit comments

Comments
 (0)