Skip to content

DefaultRedisSerializationContextBuilder.string() should assign param to stringTuple instead of hashValueTuple #2651

Closed
@imzhoukunqiang

Description

@imzhoukunqiang

Hi Team,

Below there is a code snippet from DefaultRedisSerializationContext ,line 130. The string() method assign param tuple to hashValueTuple, it should be assigned stringTuple I think.

		@Override
		public RedisSerializationContextBuilder<K, V> hashValue(SerializationPair<?> tuple) {

			Assert.notNull(tuple, "SerializationPair must not be null");

			this.hashValueTuple = tuple;
			return this;
		}

		@Override
		public RedisSerializationContextBuilder<K, V> string(SerializationPair<String> tuple) {

			Assert.notNull(tuple, "SerializationPair must not be null");
                        
			this.hashValueTuple = tuple;
			return this;
		}

Metadata

Metadata

Assignees

Labels

in: coreIssues in core supporttype: bugA general bug

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions