From ba5d1875a28c7da1a4e728e89cf9047a146acf11 Mon Sep 17 00:00:00 2001 From: alikilickaya Date: Wed, 13 Oct 2021 00:04:45 +0200 Subject: [PATCH] Fix Javadoc in QueryByExampleExecutor. Closes #2480 --- .../data/repository/query/QueryByExampleExecutor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/springframework/data/repository/query/QueryByExampleExecutor.java b/src/main/java/org/springframework/data/repository/query/QueryByExampleExecutor.java index 64b95c730..99e3bce26 100644 --- a/src/main/java/org/springframework/data/repository/query/QueryByExampleExecutor.java +++ b/src/main/java/org/springframework/data/repository/query/QueryByExampleExecutor.java @@ -33,7 +33,7 @@ import org.springframework.data.domain.Sort; public interface QueryByExampleExecutor { /** - * Returns a single entity matching the given {@link Example} or {@literal null} if none was found. + * Returns a single entity matching the given {@link Example} or {@link Optional#empty()} if none was found. * * @param example must not be {@literal null}. * @return a single entity matching the given {@link Example} or {@link Optional#empty()} if none was found.