Skip to content

Commit 9e54c37

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 a16d82e commit 9e54c37

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
@@ -590,7 +590,7 @@ public <S extends T> Page<S> findAll(Example<S> example, Pageable pageable) {
590590
@Override
591591
public <S extends T, R> R findBy(Example<S> example, Function<FetchableFluentQuery<S>, R> queryFunction) {
592592

593-
Assert.notNull(example, "Sample must not be null");
593+
Assert.notNull(example, "Example must not be null");
594594
Assert.notNull(queryFunction, "Query function must not be null");
595595

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

0 commit comments

Comments
 (0)