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/03/31 20:00:13 UTC
svn commit: r1789743 -
/httpcomponents/httpcore/trunk/httpcore5/src/main/java/org/apache/hc/core5/util/TimeValue.java
Author: ggregory
Date: Fri Mar 31 20:00:13 2017
New Revision: 1789743
URL: http://svn.apache.org/viewvc?rev=1789743&view=rev
Log:
Use Args.notNull().
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=1789743&r1=1789742&r2=1789743&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 20:00:13 2017
@@ -52,7 +52,7 @@ public class TimeValue {
public TimeValue(final long duration, final TimeUnit timeUnit) {
super();
this.duration = duration;
- this.timeUnit = timeUnit;
+ this.timeUnit = Args.notNull(timeUnit, "timeUnit");
}
public long convert(final TimeUnit sourceUnit) {