From acfde85c27e404cce314d647c16d70d0624069d2 Mon Sep 17 00:00:00 2001 From: AbassAdeyemi Date: Tue, 12 Jan 2021 10:36:19 +0100 Subject: [PATCH] Changes error message to a more beffiting one --- .../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 11714cd7..272622de 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 @@ * @author Thomas Darimont * @author Mark Paluch * @author Mert Zeybekler + * @author Adeyemi Abass */ public class KeyValueTemplate implements KeyValueOperations, ApplicationEventPublisherAware { @@ -256,7 +257,7 @@ public Iterable findAll(Class type) { @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);