From c14bad70d328a6005ab8462d7fba0d91c485ce54 Mon Sep 17 00:00:00 2001 From: AbassAdeyemi <38262858+AbassAdeyemi@users.noreply.github.com> Date: Wed, 13 Jan 2021 08:47:47 +0100 Subject: [PATCH] =?UTF-8?q?Change=20findById(=E2=80=A6)=20assert=20message?= =?UTF-8?q?=20to=20reflect=20the=20actual=20operation.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Original pull request: #345. --- .../springframework/data/keyvalue/core/KeyValueTemplate.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/springframework/data/keyvalue/core/KeyValueTemplate.java b/src/main/java/org/springframework/data/keyvalue/core/KeyValueTemplate.java index 8d537ab..28517b7 100644 --- a/src/main/java/org/springframework/data/keyvalue/core/KeyValueTemplate.java +++ b/src/main/java/org/springframework/data/keyvalue/core/KeyValueTemplate.java @@ -47,6 +47,7 @@ import org.springframework.util.CollectionUtils; * @author Thomas Darimont * @author Mark Paluch * @author Mert Zeybekler + * @author Adeyemi Abass */ public class KeyValueTemplate implements KeyValueOperations, ApplicationEventPublisherAware { @@ -256,7 +257,7 @@ public class KeyValueTemplate implements KeyValueOperations, ApplicationEventPub @Override public Optional findById(Object id, Class type) { - Assert.notNull(id, "Id for object to be inserted must not be null!"); + Assert.notNull(id, "Id for object to be found must not be null!"); Assert.notNull(type, "Type to fetch must not be null!"); String keyspace = resolveKeySpace(type);