From 35bfcf1aec889fe642a6649757ed3bade6ca981d Mon Sep 17 00:00:00 2001 From: Wang Zhi Date: Wed, 22 May 2024 15:08:11 +0800 Subject: [PATCH] Mark dnsResolver(DnsResolver) as deprecated. (#2855) --- .../java/io/lettuce/core/resource/DefaultClientResources.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/io/lettuce/core/resource/DefaultClientResources.java b/src/main/java/io/lettuce/core/resource/DefaultClientResources.java index 1922bfef66..592ffff4ab 100644 --- a/src/main/java/io/lettuce/core/resource/DefaultClientResources.java +++ b/src/main/java/io/lettuce/core/resource/DefaultClientResources.java @@ -447,7 +447,9 @@ public Builder computationThreadPoolSize(int computationThreadPoolSize) { * @param dnsResolver the DNS resolver, must not be {@code null}. * @return {@code this} {@link Builder}. * @since 4.3 + * @deprecated since 6.1. Configure {@link AddressResolverGroup} instead. */ + @Deprecated @Override public Builder dnsResolver(DnsResolver dnsResolver) {