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 2019/06/16 13:16:26 UTC
[httpcomponents-core] 01/02: Code cleanup
This is an automated email from the ASF dual-hosted git repository.
olegk pushed a commit to branch bug-fixes
in repository https://gitbox.apache.org/repos/asf/httpcomponents-core.git
commit 1ba0b996393fab033cbf785b97bdbb8e104feaee
Author: Oleg Kalnichevski <ol...@apache.org>
AuthorDate: Sun Jun 16 13:23:39 2019 +0200
Code cleanup
---
httpcore5/src/main/java/org/apache/hc/core5/pool/PoolEntry.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/pool/PoolEntry.java b/httpcore5/src/main/java/org/apache/hc/core5/pool/PoolEntry.java
index fee02f3..60c11d7 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/pool/PoolEntry.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/pool/PoolEntry.java
@@ -52,13 +52,13 @@ public final class PoolEntry<T, C extends ModalCloseable> {
private final T route;
private final TimeValue timeToLive;
private final AtomicReference<C> connRef;
+ private final Supplier<Long> currentTimeSupplier;
private volatile Object state;
private volatile long created;
private volatile long updated;
private volatile Deadline expiryDeadline = Deadline.MIN_VALUE;
private volatile Deadline validityDeadline = Deadline.MIN_VALUE;
- private Supplier<Long> currentTimeSupplier;
PoolEntry(final T route, final TimeValue timeToLive, final Supplier<Long> currentTimeSupplier) {
super();
@@ -96,8 +96,7 @@ public final class PoolEntry<T, C extends ModalCloseable> {
}
/**
- * @since 4.4
- * @since 5.0 return value is Deadline.
+ * @since 5.0
*/
public Deadline getValidityDeadline() {
return this.validityDeadline;