Skip to content

Commit d7316f4

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 48802f8 commit d7316f4

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ public <S extends T> Page<S> findAll(Example<S> example, Pageable pageable) {
585585
@Override
586586
public <S extends T, R> R findBy(Example<S> example, Function<FetchableFluentQuery<S>, R> queryFunction) {
587587

588-
Assert.notNull(example, "Sample must not be null");
588+
Assert.notNull(example, "Example must not be null");
589589
Assert.notNull(queryFunction, "Query function must not be null");
590590

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

0 commit comments

Comments
 (0)