Redundant assertion in RedisTemplate.afterPropertiesSet(…)
#2832
Labels
status: waiting-for-triage
An issue we've not yet triaged
Milestone
In
RedisTemplate#afterPropertiesSet
, if any of serializers are null andenableDefaultSerializer
is true, they are set todefaultSerializer
. After this, it checks if thedefaultSerializer
was also null, in which case an exception should be thrown. However, this cannot be the case, asdefaultSerializer
is pre-initialized toJdkSerializationRedisSerializer
, if null.spring-data-redis/src/main/java/org/springframework/data/redis/core/RedisTemplate.java
Lines 134 to 138 in 014634e
spring-data-redis/src/main/java/org/springframework/data/redis/core/RedisTemplate.java
Lines 160 to 162 in 014634e
The text was updated successfully, but these errors were encountered: