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 48802f8f66
commit d7316f4b44

View File

@@ -585,7 +585,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);