DATAREDIS-1159 - Unify return type of RedisStaticMasterReplicaConfiguration.node(…) methods.
RedisStaticMasterReplicaConfiguration.node(…) now returns the more specific RedisStaticMasterReplicaConfiguration type instead of returning the StaticMasterReplicaConfiguration interface. Original pull request: #536.
This commit is contained in:
committed by
Mark Paluch
parent
e6410fea51
commit
9272fd68b7
@@ -31,6 +31,7 @@ import org.springframework.util.Assert;
|
||||
*
|
||||
* @author Mark Paluch
|
||||
* @author Christoph Strobl
|
||||
* @author Tamer Soliman
|
||||
* @since 2.1
|
||||
*/
|
||||
public class RedisStaticMasterReplicaConfiguration implements RedisConfiguration, StaticMasterReplicaConfiguration {
|
||||
@@ -90,7 +91,7 @@ public class RedisStaticMasterReplicaConfiguration implements RedisConfiguration
|
||||
* @param hostName must not be {@literal null} or empty.
|
||||
* @return {@code this} {@link StaticMasterReplicaConfiguration}.
|
||||
*/
|
||||
public StaticMasterReplicaConfiguration node(String hostName) {
|
||||
public RedisStaticMasterReplicaConfiguration node(String hostName) {
|
||||
return node(hostName, DEFAULT_PORT);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user