Skip to content

Commit 9272fd6

Browse files
solimantmp911de
authored andcommitted
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: spring-projects#536.
1 parent e6410fe commit 9272fd6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/springframework/data/redis/connection/RedisStaticMasterReplicaConfiguration.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
*
3232
* @author Mark Paluch
3333
* @author Christoph Strobl
34+
* @author Tamer Soliman
3435
* @since 2.1
3536
*/
3637
public class RedisStaticMasterReplicaConfiguration implements RedisConfiguration, StaticMasterReplicaConfiguration {
@@ -90,7 +91,7 @@ private void addNode(RedisStandaloneConfiguration node) {
9091
* @param hostName must not be {@literal null} or empty.
9192
* @return {@code this} {@link StaticMasterReplicaConfiguration}.
9293
*/
93-
public StaticMasterReplicaConfiguration node(String hostName) {
94+
public RedisStaticMasterReplicaConfiguration node(String hostName) {
9495
return node(hostName, DEFAULT_PORT);
9596
}
9697

0 commit comments

Comments
 (0)