This is an automated email from the ASF dual-hosted git repository.

apupier pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git


The following commit(s) were added to refs/heads/main by this push:
     new c63bced3a9 chore: Runtime cleanup and modernization
c63bced3a9 is described below

commit c63bced3a90e9fb1b34d8d49ea4bc1d98770d04f
Author: Sanjana <[email protected]>
AuthorDate: Thu Feb 5 00:44:42 2026 +0530

    chore: Runtime cleanup and modernization
---
 .../camel/quarkus/core/CamelBootstrapRecorder.java     | 18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)

diff --git 
a/extensions-core/core/runtime/src/main/java/org/apache/camel/quarkus/core/CamelBootstrapRecorder.java
 
b/extensions-core/core/runtime/src/main/java/org/apache/camel/quarkus/core/CamelBootstrapRecorder.java
index 73726f9d60..2bdcf794a8 100644
--- 
a/extensions-core/core/runtime/src/main/java/org/apache/camel/quarkus/core/CamelBootstrapRecorder.java
+++ 
b/extensions-core/core/runtime/src/main/java/org/apache/camel/quarkus/core/CamelBootstrapRecorder.java
@@ -25,6 +25,8 @@ import org.jboss.logging.Logger;
 
 @Recorder
 public class CamelBootstrapRecorder {
+    private static final Logger LOGGER = 
Logger.getLogger(CamelBootstrapRecorder.class);
+
     private final RuntimeValue<CamelRuntimeConfig> camelRuntimeConfig;
 
     public CamelBootstrapRecorder(RuntimeValue<CamelRuntimeConfig> 
camelRuntimeConfig) {
@@ -32,14 +34,11 @@ public class CamelBootstrapRecorder {
     }
 
     public void addShutdownTask(ShutdownContext shutdown, 
RuntimeValue<CamelRuntime> runtime) {
-        shutdown.addShutdownTask(new Runnable() {
-            @Override
-            public void run() {
-                try {
-                    runtime.getValue().stop();
-                } catch (Exception e) {
-                    throw new RuntimeException(e);
-                }
+        shutdown.addShutdownTask(() -> {
+            try {
+                runtime.getValue().stop();
+            } catch (Exception e) {
+                throw new RuntimeException(e);
             }
         });
     }
@@ -48,8 +47,7 @@ public class CamelBootstrapRecorder {
             String camelQuarkusVersion) {
         if (camelRuntimeConfig.getValue().bootstrap().enabled()) {
             try {
-                Logger logger = Logger.getLogger(CamelBootstrapRecorder.class);
-                logger.infof("Apache Camel Quarkus %s is starting", 
camelQuarkusVersion);
+                LOGGER.infof("Apache Camel Quarkus %s is starting", 
camelQuarkusVersion);
                 runtime.getValue().start(arguments.get());
             } catch (Exception e) {
                 throw new RuntimeException(e);

Reply via email to