File tree 1 file changed +4
-4
lines changed
src/main/java/org/springframework/data/redis/connection/jedis
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -494,8 +494,8 @@ public int getDatabase() {
494
494
* Sets the index of the database used by this connection factory. Default is 0.
495
495
*
496
496
* @param index database index.
497
- * @deprecated since 2.0, configure the client name using {@link RedisSentinelConfiguration } or
498
- * {@link RedisStandaloneConfiguration }.
497
+ * @deprecated since 2.0, configure the database index using {@link RedisStandaloneConfiguration } or
498
+ * {@link RedisSentinelConfiguration }.
499
499
*/
500
500
@ Deprecated
501
501
public void setDatabase (int index ) {
@@ -1006,8 +1006,8 @@ private void assertInitialized() {
1006
1006
switch (current ) {
1007
1007
case CREATED , STOPPED -> throw new IllegalStateException (
1008
1008
String .format ("JedisConnectionFactory has been %s. Use start() to initialize it" , current ));
1009
- case DESTROYED -> throw new IllegalStateException (
1010
- "JedisConnectionFactory was destroyed and cannot be used anymore" );
1009
+ case DESTROYED ->
1010
+ throw new IllegalStateException ( "JedisConnectionFactory was destroyed and cannot be used anymore" );
1011
1011
default -> throw new IllegalStateException (String .format ("JedisConnectionFactory is %s" , current ));
1012
1012
}
1013
1013
}
You can’t perform that action at this time.
0 commit comments