to get rid of "magic" time constants

This commit is contained in:
igor-suhorukov
2018-03-08 21:30:45 +03:00
committed by Juergen Hoeller
parent ed7684d2b2
commit 407ecf7334
7 changed files with 16 additions and 11 deletions

View File

@@ -20,6 +20,7 @@ import java.io.IOException;
import java.util.Map;
import java.util.Properties;
import java.util.concurrent.Executor;
import java.util.concurrent.TimeUnit;
import javax.sql.DataSource;
import org.quartz.Scheduler;
@@ -697,7 +698,7 @@ public class SchedulerFactoryBean extends SchedulerAccessor implements FactoryBe
@Override
public void run() {
try {
Thread.sleep(startupDelay * 1000);
Thread.sleep(TimeUnit.SECONDS.toMillis(startupDelay));
}
catch (InterruptedException ex) {
Thread.currentThread().interrupt();