DATAREDIS-1172 - Fix parameter type of hash value serializer in StreamReceiver.

Original pull request: #542.
This commit is contained in:
Eddie McDaniel
2020-06-26 11:05:13 -07:00
committed by Mark Paluch
parent 9267f39abb
commit b23e972b55
2 changed files with 31 additions and 1 deletions

View File

@@ -89,6 +89,7 @@ import org.springframework.util.Assert;
* </pre>
*
* @author Mark Paluch
* @author Eddie McDaniel
* @param <K> Stream key and Stream field type.
* @param <V> Stream value type.
* @since 2.2
@@ -397,7 +398,7 @@ public interface StreamReceiver<K, V extends Record<K, ?>> {
*/
@SuppressWarnings("unchecked")
public <HK, HV> StreamReceiverOptionsBuilder<K, MapRecord<K, HK, HV>> hashValueSerializer(
SerializationPair<HK> pair) {
SerializationPair<HV> pair) {
Assert.notNull(pair, "SerializationPair must not be null");