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

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new ecf39da  Fixed CS
ecf39da is described below

commit ecf39da32653e57f6cccf318f8b58874b9c5a98e
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Thu Jan 21 17:39:28 2021 +0100

    Fixed CS
---
 .../java/org/apache/camel/main/DefaultConfigurationConfigurer.java     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/core/camel-main/src/main/java/org/apache/camel/main/DefaultConfigurationConfigurer.java
 
b/core/camel-main/src/main/java/org/apache/camel/main/DefaultConfigurationConfigurer.java
index d2481db..6829fb7 100644
--- 
a/core/camel-main/src/main/java/org/apache/camel/main/DefaultConfigurationConfigurer.java
+++ 
b/core/camel-main/src/main/java/org/apache/camel/main/DefaultConfigurationConfigurer.java
@@ -100,9 +100,10 @@ public final class DefaultConfigurationConfigurer {
                     ecc.setStartupStepRecorder(new 
LoggingStartupStepRecorder());
                 }
             } else if 
("java-flight-recorder".equals(config.getStartupRecorder())) {
-                if 
(!ecc.getStartupStepRecorder().getClass().getName().startsWith("org.apache.camel.startup.jfr"))
+                if 
(!ecc.getStartupStepRecorder().getClass().getName().startsWith("org.apache.camel.startup.jfr"))
 {
                     throw new IllegalArgumentException(
                             "Cannot find Camel Java Flight Recorder on 
classpath. Add camel-jfr to classpath.");
+                }
             }
         }
         
ecc.getStartupStepRecorder().setMaxDepth(config.getStartupRecorderMaxDepth());

Reply via email to