committed by
Christoph Strobl
parent
b5ea3f6826
commit
535ee68d95
@@ -178,7 +178,7 @@ abstract public class Converters {
|
||||
*/
|
||||
public static Set<RedisClusterNode> toSetOfRedisClusterNodes(String clusterNodes) {
|
||||
|
||||
if (StringUtils.isEmpty(clusterNodes)) {
|
||||
if (!StringUtils.hasText(clusterNodes)) {
|
||||
return Collections.emptySet();
|
||||
}
|
||||
|
||||
|
||||
@@ -15,16 +15,15 @@
|
||||
*/
|
||||
package org.springframework.data.redis.connection.jedis;
|
||||
|
||||
import redis.clients.jedis.Jedis;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Properties;
|
||||
|
||||
import org.springframework.core.io.support.PropertiesLoaderUtils;
|
||||
import org.springframework.data.redis.Version;
|
||||
import org.springframework.data.redis.VersionParser;
|
||||
import org.springframework.data.util.Version;
|
||||
import org.springframework.util.StringUtils;
|
||||
|
||||
import redis.clients.jedis.Jedis;
|
||||
|
||||
/**
|
||||
* @author Christoph Strobl
|
||||
* @since 1.3
|
||||
@@ -47,7 +46,7 @@ public class JedisVersionUtil {
|
||||
* @return
|
||||
*/
|
||||
static Version parseVersion(String version) {
|
||||
return VersionParser.parseVersion(version);
|
||||
return Version.parse(version);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user