Change findById(…) assert message to reflect the actual operation.

Original pull request: #345.
This commit is contained in:
AbassAdeyemi
2021-01-13 08:47:47 +01:00
committed by GitHub
parent 7a09363718
commit c14bad70d3

View File

@@ -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 <T> Optional<T> findById(Object id, Class<T> 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);