Skip to content

Commit

Permalink
Fix typo in assertion message.
Browse files Browse the repository at this point in the history
Corrected the assertion message from "Sample must not be null" to "Example must not be null" for clarity and consistency.

Closes #3565
  • Loading branch information
Seol-JY authored and mp911de committed Aug 8, 2024
1 parent a16d82e commit 9e54c37
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ public <S extends T> Page<S> findAll(Example<S> example, Pageable pageable) {
@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);
Expand Down

0 comments on commit 9e54c37

Please sign in to comment.