Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 83397200C3A for ; Fri, 31 Mar 2017 20:48:13 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 820B8160B8C; Fri, 31 Mar 2017 18:48:13 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D01DA160B7C for ; Fri, 31 Mar 2017 20:48:12 +0200 (CEST) Received: (qmail 67444 invoked by uid 500); 31 Mar 2017 18:48:12 -0000 Mailing-List: contact commits-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list commits@hc.apache.org Received: (qmail 67435 invoked by uid 99); 31 Mar 2017 18:48:12 -0000 Received: from Unknown (HELO svn01-us-west.apache.org) (209.188.14.144) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Mar 2017 18:48:12 +0000 Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 8CD663A00A6 for ; Fri, 31 Mar 2017 18:48:11 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1789726 - /httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/util/TimeValue.java Date: Fri, 31 Mar 2017 18:48:11 -0000 To: commits@hc.apache.org From: ggregory@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20170331184811.8CD663A00A6@svn01-us-west.apache.org> archived-at: Fri, 31 Mar 2017 18:48:13 -0000 Author: ggregory Date: Fri Mar 31 18:48:11 2017 New Revision: 1789726 URL: http://svn.apache.org/viewvc?rev=1789726&view=rev Log: Oops, forgot to run checkstyle. Modified: httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/util/TimeValue.java Modified: httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/util/TimeValue.java URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/util/TimeValue.java?rev=1789726&r1=1789725&r2=1789726&view=diff ============================================================================== --- httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/util/TimeValue.java (original) +++ httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/util/TimeValue.java Fri Mar 31 18:48:11 2017 @@ -31,7 +31,7 @@ import java.util.concurrent.TimeUnit; /** * Wraps a time (long) and TimeUnit. - * + * * @since 5.0 */ public class TimeValue { @@ -40,13 +40,13 @@ public class TimeValue { private final TimeUnit timeUnit; - public TimeValue(long duration, TimeUnit timeUnit) { + public TimeValue(final long duration, final TimeUnit timeUnit) { super(); this.duration = duration; this.timeUnit = timeUnit; } - public long convert(TimeUnit sourceUnit) { + public long convert(final TimeUnit sourceUnit) { return timeUnit.convert(duration, sourceUnit); } @@ -62,11 +62,11 @@ public class TimeValue { timeUnit.sleep(duration); } - public void timedJoin(Thread thread) throws InterruptedException { + public void timedJoin(final Thread thread) throws InterruptedException { timeUnit.timedJoin(thread, duration); } - public void timedWait(Object obj) throws InterruptedException { + public void timedWait(final Object obj) throws InterruptedException { timeUnit.timedWait(obj, duration); }