File tree 1 file changed +6
-4
lines changed
src/main/java/org/springframework/data/redis/core
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 19
19
import org .apache .commons .logging .LogFactory ;
20
20
import org .springframework .beans .factory .InitializingBean ;
21
21
import org .springframework .data .redis .connection .RedisConnectionFactory ;
22
- import org .springframework .data .redis .util .RedisAssertions ;
23
22
import org .springframework .lang .Nullable ;
23
+ import org .springframework .util .Assert ;
24
24
25
25
/**
26
- * Base class for {@link RedisTemplate} defining common properties. Not intended to be used directly.
26
+ * Base class for {@link RedisTemplate} implementations defining common properties. Not intended to be used directly.
27
27
*
28
28
* @author Costin Leau
29
29
* @author John Blum
30
- * @see org.springframework.beans.factory.InitializingBean
31
30
*/
32
31
public abstract class RedisAccessor implements InitializingBean {
33
32
@@ -62,7 +61,10 @@ public RedisConnectionFactory getConnectionFactory() {
62
61
* @since 2.0
63
62
*/
64
63
public RedisConnectionFactory getRequiredConnectionFactory () {
65
- return RedisAssertions .requireState (getConnectionFactory (), "RedisConnectionFactory is required" );
64
+
65
+ RedisConnectionFactory connectionFactory = getConnectionFactory ();
66
+ Assert .state (connectionFactory != null , "RedisConnectionFactory is required" );
67
+ return connectionFactory ;
66
68
}
67
69
68
70
/**
You can’t perform that action at this time.
0 commit comments