This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push: new e181db36535 CAMEL-20583: fixed compilation problem on static initialization (#13562) e181db36535 is described below commit e181db365352c620c32771dd68648887f6bf9ad2 Author: Otavio Rodolfo Piske <orpi...@users.noreply.github.com> AuthorDate: Thu Mar 21 06:48:21 2024 -0300 CAMEL-20583: fixed compilation problem on static initialization (#13562) --- .../main/java21/org/apache/camel/util/concurrent/ThreadType.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/camel-util/src/main/java21/org/apache/camel/util/concurrent/ThreadType.java b/core/camel-util/src/main/java21/org/apache/camel/util/concurrent/ThreadType.java index 6acd445823d..16a9401371d 100644 --- a/core/camel-util/src/main/java21/org/apache/camel/util/concurrent/ThreadType.java +++ b/core/camel-util/src/main/java21/org/apache/camel/util/concurrent/ThreadType.java @@ -30,7 +30,11 @@ public enum ThreadType { private static final Logger LOG = LoggerFactory.getLogger(ThreadType.class); private static final ThreadType CURRENT = Boolean.getBoolean("camel.threads.virtual.enabled") ? VIRTUAL : PLATFORM; static { - CURRENT == VIRTUAL ? LOG.info("The type of thread detected is: {}", CURRENT) : LOG.debug("The type of thread detected is: {}", CURRENT); + if (CURRENT == VIRTUAL) { + LOG.info("The type of thread detected is: {}", CURRENT); + } else { + LOG.debug("The type of thread detected is: {}", CURRENT); + } } public static ThreadType current() { return CURRENT;