From 8f26c9d6dced7b08d1fcf9baff75978802878d90 Mon Sep 17 00:00:00 2001 From: Rich Bowen Date: Tue, 14 Feb 2023 10:35:08 -0500 Subject: [PATCH] Fix duplicate word occurrences #2307 --- src/main/java/io/lettuce/core/ConcurrentLruCache.java | 2 +- src/main/java/io/lettuce/core/SocketOptions.java | 2 +- src/main/java/io/lettuce/core/metrics/MetricCollector.java | 2 +- src/main/java/io/lettuce/core/protocol/CommandWrapper.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/io/lettuce/core/ConcurrentLruCache.java b/src/main/java/io/lettuce/core/ConcurrentLruCache.java index a91f202d72..696de41cc3 100644 --- a/src/main/java/io/lettuce/core/ConcurrentLruCache.java +++ b/src/main/java/io/lettuce/core/ConcurrentLruCache.java @@ -171,7 +171,7 @@ public int size() { } /** - * Return the the maximum number of entries in the cache (0 indicates no caching, always generating a new value). + * Return the maximum number of entries in the cache (0 indicates no caching, always generating a new value). * * @see #size() */ diff --git a/src/main/java/io/lettuce/core/SocketOptions.java b/src/main/java/io/lettuce/core/SocketOptions.java index 567cb6bebb..061f1ae3a4 100644 --- a/src/main/java/io/lettuce/core/SocketOptions.java +++ b/src/main/java/io/lettuce/core/SocketOptions.java @@ -324,7 +324,7 @@ private Builder() { } /** - * Set the the maximum number of keepalive probes TCP should send before dropping the connection. Defaults to + * Set the maximum number of keepalive probes TCP should send before dropping the connection. Defaults to * {@code 9}. See also {@link #DEFAULT_COUNT} and {@code TCP_KEEPCNT}. * * @param count the maximum number of keepalive probes TCP diff --git a/src/main/java/io/lettuce/core/metrics/MetricCollector.java b/src/main/java/io/lettuce/core/metrics/MetricCollector.java index 660e2dcc6b..0b1d7f20df 100644 --- a/src/main/java/io/lettuce/core/metrics/MetricCollector.java +++ b/src/main/java/io/lettuce/core/metrics/MetricCollector.java @@ -33,7 +33,7 @@ public interface MetricCollector { /** * Returns the collected/aggregated metrics. * - * @return the the collected/aggregated metrics + * @return the collected/aggregated metrics */ T retrieveMetrics(); diff --git a/src/main/java/io/lettuce/core/protocol/CommandWrapper.java b/src/main/java/io/lettuce/core/protocol/CommandWrapper.java index 7ea27d0639..903e68ffa4 100644 --- a/src/main/java/io/lettuce/core/protocol/CommandWrapper.java +++ b/src/main/java/io/lettuce/core/protocol/CommandWrapper.java @@ -264,7 +264,7 @@ public static RedisCommand unwrap(RedisCommand wrapp * * If the receiver implements the interface then the result is the receiver or a proxy for the receiver. If the receiver is * a wrapper and the wrapped object implements the interface then the result is the wrapped object or a proxy for the - * wrapped object. Otherwise return the the result of calling unwrap recursively on the wrapped object or a + * wrapped object. Otherwise return the result of calling unwrap recursively on the wrapped object or a * proxy for that result. If the receiver is not a wrapper and does not implement the interface, then an {@code null} is * returned. *