From 9e54c37a8a3cc0b0697498529155db2894772416 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 746703220f..7d1a09e428 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 @@ -590,7 +590,7 @@ public Page findAll(Example example, Pageable pageable) { @Override public 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);