[prev in list] [next in list] [prev in thread] [next in thread] 

List:       httpcomponents-commits
Subject:    [httpcomponents-client] branch master updated: Hygiene - remove unused private fields
From:       olegk () apache ! org
Date:       2023-02-23 12:01:15
Message-ID: 167715367583.3837480.17067110497309218577 () gitbox2-he-fi ! apache ! org
[Download RAW message or body]

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 <jkmcl@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;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic