This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-io.git
The following commit(s) were added to refs/heads/master by this push:
new b048a59 Update Javadoc.
b048a59 is described below
commit b048a59a6e351ef44521ad770fd39afa73639632
Author: Gary Gregory <[email protected]>
AuthorDate: Mon Sep 6 19:04:25 2021 -0400
Update Javadoc.
---
src/main/java/org/apache/commons/io/ThreadMonitor.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/commons/io/ThreadMonitor.java
b/src/main/java/org/apache/commons/io/ThreadMonitor.java
index dee55b9..d82235c 100644
--- a/src/main/java/org/apache/commons/io/ThreadMonitor.java
+++ b/src/main/java/org/apache/commons/io/ThreadMonitor.java
@@ -28,9 +28,9 @@ import java.time.Duration;
* </p>
*
* <pre>
- * long timeoutInMillis = 1000;
+ * Duration timeout = Duration.ofSeconds(1);
* try {
- * Thread monitor = ThreadMonitor.start(timeoutInMillis);
+ * Thread monitor = ThreadMonitor.start(timeout);
* // do some work here
* ThreadMonitor.stop(monitor);
* } catch (InterruptedException e) {