From 42eb476df7b4d6a52e145c01e2bad0f689c714d4 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. --- .../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);