File tree 1 file changed +0
-10
lines changed
src/main/java/org/springframework/data/redis/core
1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -129,8 +129,6 @@ public void afterPropertiesSet() {
129
129
130
130
super .afterPropertiesSet ();
131
131
132
- boolean defaultUsed = false ;
133
-
134
132
if (defaultSerializer == null ) {
135
133
136
134
defaultSerializer = new JdkSerializationRedisSerializer (
@@ -141,26 +139,18 @@ public void afterPropertiesSet() {
141
139
142
140
if (keySerializer == null ) {
143
141
keySerializer = defaultSerializer ;
144
- defaultUsed = true ;
145
142
}
146
143
if (valueSerializer == null ) {
147
144
valueSerializer = defaultSerializer ;
148
- defaultUsed = true ;
149
145
}
150
146
if (hashKeySerializer == null ) {
151
147
hashKeySerializer = defaultSerializer ;
152
- defaultUsed = true ;
153
148
}
154
149
if (hashValueSerializer == null ) {
155
150
hashValueSerializer = defaultSerializer ;
156
- defaultUsed = true ;
157
151
}
158
152
}
159
153
160
- if (enableDefaultSerializer && defaultUsed ) {
161
- Assert .notNull (defaultSerializer , "default serializer null and not all serializers initialized" );
162
- }
163
-
164
154
if (scriptExecutor == null ) {
165
155
this .scriptExecutor = new DefaultScriptExecutor <>(this );
166
156
}
You can’t perform that action at this time.
0 commit comments