From 6cc9802024bb0d83393e86bf4ca6218c5984ebe2 Mon Sep 17 00:00:00 2001 From: Richard Cordovano Date: Mon, 4 Jan 2021 13:39:13 -0500 Subject: [PATCH] Fix ctor field init bug, add comments for TaskRetryUtil --- .../org/sleuthkit/autopsy/threadutils/TaskRetryUtil.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/threadutils/TaskRetryUtil.java b/Core/src/org/sleuthkit/autopsy/threadutils/TaskRetryUtil.java index 67ddabf938..764208e628 100755 --- a/Core/src/org/sleuthkit/autopsy/threadutils/TaskRetryUtil.java +++ b/Core/src/org/sleuthkit/autopsy/threadutils/TaskRetryUtil.java @@ -86,7 +86,7 @@ public class TaskRetryUtil { } this.delay = delay; this.timeOut = 0L; - this.timeUnit = TimeUnit.SECONDS; + this.timeUnit = timeUnit; } /** @@ -117,7 +117,7 @@ public class TaskRetryUtil { /** * Gets the optional delay before the task should be attempted, may be - * zero. + * zero. Call getTimeUnit() to get the time unit for the delay. * * @return The delay. */ @@ -126,7 +126,8 @@ public class TaskRetryUtil { } /** - * Gets the the optional timeout for the task attempt, may be zero. + * Gets the the optional timeout for the task attempt, may be zero. Call + * getTimeUnit() to get the time unit for the delay. * * @return The timeout. */ @@ -136,7 +137,7 @@ public class TaskRetryUtil { /** * Gets the time unit for the optional delay before the task should be - * attempted and the optional time out. + * attempted and/or the optional time out. * * @return The time unit. */