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 ec95541..828a255 100644 --- a/src/main/java/org/springframework/data/keyvalue/core/KeyValueTemplate.java +++ b/src/main/java/org/springframework/data/keyvalue/core/KeyValueTemplate.java @@ -46,6 +46,7 @@ import org.springframework.util.CollectionUtils; * @author Oliver Gierke * @author Thomas Darimont * @author Mark Paluch + * @author Adeyemi Abass */ public class KeyValueTemplate implements KeyValueOperations, ApplicationEventPublisherAware { @@ -240,7 +241,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);