You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by gg...@apache.org on 2017/07/12 23:04:14 UTC
httpcomponents-core git commit: Extract else clause.
Repository: httpcomponents-core
Updated Branches:
refs/heads/master 294bc9cf0 -> 94721e022
Extract else clause.
Project: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/commit/94721e02
Tree: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/tree/94721e02
Diff: http://git-wip-us.apache.org/repos/asf/httpcomponents-core/diff/94721e02
Branch: refs/heads/master
Commit: 94721e0229e7aef42c537c017be376925c75e2c3
Parents: 294bc9c
Author: ggregory <gg...@US-L-GG05.rocketsoftware.com>
Authored: Wed Jul 12 16:04:04 2017 -0700
Committer: ggregory <gg...@US-L-GG05.rocketsoftware.com>
Committed: Wed Jul 12 16:04:04 2017 -0700
----------------------------------------------------------------------
httpcore5/src/main/java/org/apache/hc/core5/util/TimeValue.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/httpcomponents-core/blob/94721e02/httpcore5/src/main/java/org/apache/hc/core5/util/TimeValue.java
----------------------------------------------------------------------
diff --git a/httpcore5/src/main/java/org/apache/hc/core5/util/TimeValue.java b/httpcore5/src/main/java/org/apache/hc/core5/util/TimeValue.java
index 055d4a0..3d89578 100644
--- a/httpcore5/src/main/java/org/apache/hc/core5/util/TimeValue.java
+++ b/httpcore5/src/main/java/org/apache/hc/core5/util/TimeValue.java
@@ -199,9 +199,8 @@ public class TimeValue {
if (TimeValue.isPositive(timeValue)) {
final long deadline = currentTimeMillis + timeValue.toMillis();
return deadline >= 0 ? deadline : Long.MAX_VALUE;
- } else {
- return Long.MAX_VALUE;
}
+ return Long.MAX_VALUE;
}
private final long duration;