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-lang.git
The following commit(s) were added to refs/heads/master by this push:
new 038696c Add missing Javadoc.
038696c is described below
commit 038696c15426a2e5c72340f95e5ad69cd8407d28
Author: Gary Gregory <[email protected]>
AuthorDate: Thu Feb 25 18:05:17 2021 -0500
Add missing Javadoc.
---
src/main/java/org/apache/commons/lang3/ObjectUtils.java | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/src/main/java/org/apache/commons/lang3/ObjectUtils.java
b/src/main/java/org/apache/commons/lang3/ObjectUtils.java
index f88c26b..4e0b250 100644
--- a/src/main/java/org/apache/commons/lang3/ObjectUtils.java
+++ b/src/main/java/org/apache/commons/lang3/ObjectUtils.java
@@ -1319,6 +1319,19 @@ public class ObjectUtils {
return obj == null ? supplier == null ? null : supplier.get() :
obj.toString();
}
+ /**
+ * Calls {@link Object#wait(long, int)} for the given Duration.
+ *
+ * @param obj The receiver of the wait call.
+ * @param duration How long to wait.
+ * @throws IllegalArgumentException if the timeout duration is negative.
+ * @throws IllegalMonitorStateException if the current thread is not the
owner of the {@code obj}'s monitor.
+ * @throws InterruptedException if any thread interrupted the current
thread before or while the current thread was
+ * waiting for a notification. The <em>interrupted status</em> of
the current thread is cleared when this
+ * exception is thrown.
+ * @see Object#wait(long, int)
+ * @since 3.12.0
+ */
public static void wait(final Object obj, final Duration duration) throws
InterruptedException {
DurationUtils.accept(obj::wait, DurationUtils.zeroIfNull(duration));
}