Fix typo in assertion message.

Corrected the assertion message from "Sample must not be null" to "Example must not be null" for clarity and consistency.

Closes #3565
This commit is contained in:
Seol_JY
2024-08-08 14:24:05 +09:00
committed by Mark Paluch
parent a16d82ef7a
commit 9e54c37a8a

View File

@@ -590,7 +590,7 @@ public class SimpleJpaRepository<T, ID> implements JpaRepositoryImplementation<T
@Override
public <S extends T, R> R findBy(Example<S> example, Function<FetchableFluentQuery<S>, R> queryFunction) {
Assert.notNull(example, "Sample must not be null");
Assert.notNull(example, "Example must not be null");
Assert.notNull(queryFunction, "Query function must not be null");
ExampleSpecification<S> spec = new ExampleSpecification<>(example, escapeCharacter);