diff --git a/extensions/quartz/runtime/src/main/java/io/quarkus/quartz/runtime/QuartzSchedulerImpl.java b/extensions/quartz/runtime/src/main/java/io/quarkus/quartz/runtime/QuartzSchedulerImpl.java index 1dbeb40deb5dc..0100eafabf819 100644 --- a/extensions/quartz/runtime/src/main/java/io/quarkus/quartz/runtime/QuartzSchedulerImpl.java +++ b/extensions/quartz/runtime/src/main/java/io/quarkus/quartz/runtime/QuartzSchedulerImpl.java @@ -135,7 +135,7 @@ public QuartzSchedulerImpl(SchedulerContext context, QuartzSupport quartzSupport this.schedulerConfig = schedulerConfig; this.storeType = quartzSupport.getBuildTimeConfig().storeType(); - StartMode startMode = initStartMode(schedulerRuntimeConfig); + StartMode startMode = schedulerRuntimeConfig.startMode().orElse(StartMode.NORMAL); boolean forceStart; if (startMode != StartMode.NORMAL) { @@ -660,14 +660,6 @@ private void putExtensionConfigurationProperties(Properties props, String prefix }); } - StartMode initStartMode(SchedulerRuntimeConfig schedulerRuntimeConfig) { - if (schedulerRuntimeConfig.startMode().isPresent()) { - return schedulerRuntimeConfig.startMode().get(); - } else { - return StartMode.NORMAL; - } - } - private JobBuilder createJobBuilder(String identity, String invokerClassName, boolean noncurrent) { Class jobClass = noncurrent ? NonconcurrentInvokerJob.class : InvokerJob.class;