From f15d1584f7215a55b1dbf51e8023e59e9b676636 Mon Sep 17 00:00:00 2001 From: Seol_JY Date: Thu, 8 Aug 2024 14:24:05 +0900 Subject: [PATCH] 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 --- .../data/jpa/repository/support/SimpleJpaRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/support/SimpleJpaRepository.java b/spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/support/SimpleJpaRepository.java index a2aaf3478..c716b4514 100644 --- a/spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/support/SimpleJpaRepository.java +++ b/spring-data-jpa/src/main/java/org/springframework/data/jpa/repository/support/SimpleJpaRepository.java @@ -595,7 +595,7 @@ public class SimpleJpaRepository implements JpaRepositoryImplementation R findBy(Example example, Function, 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 spec = new ExampleSpecification<>(example, escapeCharacter);