When specifying colon-separated pairs of host and port with IPv6 addresses (i.e. [::1]:6379) for either spring.data.redis.cluster.nodes or spring.data.redis.sentinel.nodes, the parsing of these nodes/addresses was broken as the splitting of these strings was not performed explicitly on the last found colon. The behavior is fixed with this PR.

Comment From: pivotal-cla

@tobi-laa Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

Comment From: pivotal-cla

@tobi-laa Thank you for signing the Contributor License Agreement!

Comment From: tobi-laa

Fixed formatting.

Comment From: tobi-laa

Fixed Checkstyle violation. Sorry, should have fixed that from the start.

Comment From: mhalbritter

If you run ./gradlew build, you get those errors on your local machine instead of waiting for the CI.

Comment From: tobi-laa

@wilkinsona Thank you for the review! I updated the PR accordingly.

Comment From: wilkinsona

@tobi-laa thanks very much for making your first contribution to Spring Boot.