Skip to content

Commit d0a3553

Browse files
AbassAdeyemimp911de
authored andcommitted
Change findById(…) assert message to reflect the actual operation.
Original pull request: #345.
1 parent c220c78 commit d0a3553

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
@@ -46,6 +46,7 @@
4646
* @author Oliver Gierke
4747
* @author Thomas Darimont
4848
* @author Mark Paluch
49+
* @author Adeyemi Abass
4950
*/
5051
public class KeyValueTemplate implements KeyValueOperations, ApplicationEventPublisherAware {
5152

@@ -240,7 +241,7 @@ public <T> Iterable<T> findAll(Class<T> type) {
240241
@Override
241242
public <T> Optional<T> findById(Object id, Class<T> type) {
242243

243-
Assert.notNull(id, "Id for object to be inserted must not be null!");
244+
Assert.notNull(id, "Id for object to be found must not be null!");
244245
Assert.notNull(type, "Type to fetch must not be null!");
245246

246247
String keyspace = resolveKeySpace(type);

0 commit comments

Comments
 (0)