File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/main/java/org/springframework/data/redis/connection/jedis Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -494,8 +494,8 @@ public int getDatabase() {
494494 * Sets the index of the database used by this connection factory. Default is 0.
495495 *
496496 * @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 }.
499499 */
500500 @ Deprecated
501501 public void setDatabase (int index ) {
@@ -1006,8 +1006,8 @@ private void assertInitialized() {
10061006 switch (current ) {
10071007 case CREATED , STOPPED -> throw new IllegalStateException (
10081008 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" );
10111011 default -> throw new IllegalStateException (String .format ("JedisConnectionFactory is %s" , current ));
10121012 }
10131013 }
You can’t perform that action at this time.
0 commit comments