summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Pursehouse <dpursehouse@digital.ai>2020-04-25 10:20:26 +0900
committerDavid Pursehouse <dpursehouse@digital.ai>2020-04-25 10:25:35 +0900
commit3d2dfcb717599f53c907944164d68910e88608f8 (patch)
tree1d41361372321727b6a4b018bc3eeefe9854bd6f
parent200208eb723626cf1177bbf345ebb1f44bb31b25 (diff)
MultiProgressMonitor#waitFor: Fix Javadoc of thrown exception
In change I6a4b2731f the waitFor method was changed to throw TimeoutException instead of ExecutionException, but the Javadoc was not updated. Change-Id: Iefa7692efb81e4087542cea9918ae82651f45f7b
-rw-r--r--java/com/google/gerrit/server/git/MultiProgressMonitor.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/com/google/gerrit/server/git/MultiProgressMonitor.java b/java/com/google/gerrit/server/git/MultiProgressMonitor.java
index 7b976e8682..2d854a539a 100644
--- a/java/com/google/gerrit/server/git/MultiProgressMonitor.java
+++ b/java/com/google/gerrit/server/git/MultiProgressMonitor.java
@@ -184,7 +184,7 @@ public class MultiProgressMonitor {
* @param timeoutTime overall timeout for the task; the future is forcefully cancelled if the task
* exceeds the timeout. Non-positive values indicate no timeout.
* @param timeoutUnit unit for overall task timeout.
- * @throws ExecutionException if this thread or a worker thread was interrupted, the worker was
+ * @throws TimeoutException if this thread or a worker thread was interrupted, the worker was
* cancelled, or timed out waiting for a worker to call {@link #end()}.
*/
public <T> T waitFor(Future<T> workerFuture, long timeoutTime, TimeUnit timeoutUnit)