Skip to content

Commit 363e46f

Browse files
bytestrememp911de
authored andcommitted
Fix DefaultSerializationContext assertion message.
Closes #2336
1 parent f353a09 commit 363e46f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/main/java/org/springframework/data/redis/serializer/DefaultRedisSerializationContext.java

+5-4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
*
2424
* @author Mark Paluch
2525
* @author Christoph Strobl
26+
* @author Shyngys Sapraliyev
2627
* @since 2.0
2728
*/
2829
class DefaultRedisSerializationContext<K, V> implements RedisSerializationContext<K, V> {
@@ -133,10 +134,10 @@ public RedisSerializationContextBuilder<K, V> string(SerializationPair<String> t
133134
@Override
134135
public RedisSerializationContext<K, V> build() {
135136

136-
Assert.notNull(keyTuple, "Key SerializationPair must not be null");
137-
Assert.notNull(valueTuple, "Value SerializationPair must not be null");
138-
Assert.notNull(hashKeyTuple, "HashKey SerializationPair must not be null");
139-
Assert.notNull(hashValueTuple, "ValueKey SerializationPair must not be null");
137+
Assert.notNull(keyTuple, "Key SerializationPair must not be null!");
138+
Assert.notNull(valueTuple, "Value SerializationPair must not be null!");
139+
Assert.notNull(hashKeyTuple, "HashKey SerializationPair must not be null!");
140+
Assert.notNull(hashValueTuple, "HashValue SerializationPair must not be null!");
140141

141142
return new DefaultRedisSerializationContext<>(keyTuple, valueTuple, hashKeyTuple, hashValueTuple,
142143
stringTuple);

0 commit comments

Comments
 (0)