Skip to content

Commit f15d158

Browse files
Seol-JYmp911de
authored andcommitted
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
1 parent 63d44c8 commit f15d158

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ public <S extends T> Page<S> findAll(Example<S> example, Pageable pageable) {
595595
@Override
596596
public <S extends T, R> R findBy(Example<S> example, Function<FetchableFluentQuery<S>, R> queryFunction) {
597597

598-
Assert.notNull(example, "Sample must not be null");
598+
Assert.notNull(example, "Example must not be null");
599599
Assert.notNull(queryFunction, "Query function must not be null");
600600

601601
ExampleSpecification<S> spec = new ExampleSpecification<>(example, escapeCharacter);

0 commit comments

Comments
 (0)