Fix Javadoc in QueryByExampleExecutor.

Closes #2480
This commit is contained in:
alikilickaya
2021-10-13 00:04:45 +02:00
committed by Mark Paluch
parent c383024312
commit dd8a8083a5

View File

@@ -34,7 +34,7 @@ import org.springframework.data.domain.Sort;
public interface QueryByExampleExecutor<T> {
/**
* 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.