Skip to content

Commit c14bad7

Browse files
authored
Change findById(…) assert message to reflect the actual operation.
Original pull request: #345.
1 parent 7a09363 commit c14bad7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/springframework/data/keyvalue/core/KeyValueTemplate.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
* @author Thomas Darimont
4848
* @author Mark Paluch
4949
* @author Mert Zeybekler
50+
* @author Adeyemi Abass
5051
*/
5152
public class KeyValueTemplate implements KeyValueOperations, ApplicationEventPublisherAware {
5253

@@ -256,7 +257,7 @@ public <T> Iterable<T> findAll(Class<T> type) {
256257
@Override
257258
public <T> Optional<T> findById(Object id, Class<T> type) {
258259

259-
Assert.notNull(id, "Id for object to be inserted must not be null!");
260+
Assert.notNull(id, "Id for object to be found must not be null!");
260261
Assert.notNull(type, "Type to fetch must not be null!");
261262

262263
String keyspace = resolveKeySpace(type);

0 commit comments

Comments
 (0)