You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2023/02/23 12:01:15 UTC
[httpcomponents-client] branch master updated: Hygiene - remove unused private fields
This is an automated email from the ASF dual-hosted git repository.
olegk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git
The following commit(s) were added to refs/heads/master by this push:
new fc8015632 Hygiene - remove unused private fields
fc8015632 is described below
commit fc80156321079f598db451ebc33cd6ea7c3e4740
Author: Michael Lee <jk...@users.noreply.github.com>
AuthorDate: Thu Feb 23 14:21:04 2023 +0800
Hygiene - remove unused private fields
---
.../hc/client5/http/impl/cache/DefaultAsyncCacheRevalidator.java | 4 ----
.../http/impl/schedule/ExponentialBackOffSchedulingStrategy.java | 3 ---
2 files changed, 7 deletions(-)
diff --git a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/DefaultAsyncCacheRevalidator.java b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/DefaultAsyncCacheRevalidator.java
index ed2a1b98d..52c20a490 100644
--- a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/DefaultAsyncCacheRevalidator.java
+++ b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/cache/DefaultAsyncCacheRevalidator.java
@@ -87,8 +87,6 @@ class DefaultAsyncCacheRevalidator extends CacheRevalidatorBase {
}
- private final CacheKeyGenerator cacheKeyGenerator;
-
/**
* Create DefaultCacheRevalidator which will make ache revalidation requests
* using the supplied {@link SchedulingStrategy} and {@link ScheduledExecutor}.
@@ -97,8 +95,6 @@ class DefaultAsyncCacheRevalidator extends CacheRevalidatorBase {
final ScheduledExecutor scheduledExecutor,
final SchedulingStrategy schedulingStrategy) {
super(new InternalScheduledExecutor(scheduledExecutor), schedulingStrategy);
- this.cacheKeyGenerator = CacheKeyGenerator.INSTANCE;
-
}
/**
diff --git a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/schedule/ExponentialBackOffSchedulingStrategy.java b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/schedule/ExponentialBackOffSchedulingStrategy.java
index 29629e118..59ed90806 100644
--- a/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/schedule/ExponentialBackOffSchedulingStrategy.java
+++ b/httpclient5-cache/src/main/java/org/apache/hc/client5/http/impl/schedule/ExponentialBackOffSchedulingStrategy.java
@@ -61,9 +61,6 @@ public class ExponentialBackOffSchedulingStrategy implements SchedulingStrategy
public static final TimeValue DEFAULT_INITIAL_EXPIRY = TimeValue.ofSeconds(6);
public static final TimeValue DEFAULT_MAX_EXPIRY = TimeValue.ofSeconds(86400);
- private static final ExponentialBackOffSchedulingStrategy INSTANCE = new ExponentialBackOffSchedulingStrategy(
- DEFAULT_BACK_OFF_RATE, DEFAULT_INITIAL_EXPIRY, DEFAULT_MAX_EXPIRY);
-
private final long backOffRate;
private final TimeValue initialExpiry;
private final TimeValue maxExpiry;