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

commit 773c8f6789e3ccd857dce0dabe616815c42c9487
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Sun Feb 2 10:30:31 2020 +0100

    Polished
---
 .../main/java/org/apache/camel/impl/engine/DefaultRouteContext.java | 6 +++---
 .../src/main/java/org/apache/camel/processor/Pipeline.java          | 1 -
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git 
a/core/camel-base/src/main/java/org/apache/camel/impl/engine/DefaultRouteContext.java
 
b/core/camel-base/src/main/java/org/apache/camel/impl/engine/DefaultRouteContext.java
index 9cf4ad0..afc8e95 100644
--- 
a/core/camel-base/src/main/java/org/apache/camel/impl/engine/DefaultRouteContext.java
+++ 
b/core/camel-base/src/main/java/org/apache/camel/impl/engine/DefaultRouteContext.java
@@ -208,10 +208,10 @@ public class DefaultRouteContext implements RouteContext {
             // wrap in route lifecycle
             internal.addAdvice(new 
CamelInternalProcessor.RouteLifecycleAdvice());
 
-            // wrap in REST binding
+            // add advices
             advices.forEach(internal::addAdvice);
 
-            // and create the route that wraps the UoW
+            // and create the route that wraps all of this
             Route edcr = new EventDrivenConsumerRoute(this, getEndpoint(), 
internal);
             edcr.getProperties().putAll(properties);
 
@@ -572,7 +572,7 @@ public class DefaultRouteContext implements RouteContext {
         Set<NamedNode> list = getErrorHandlers(source);
         Set<NamedNode> previous = errorHandlers.put(target, list);
         if (list != previous && ObjectHelper.isNotEmpty(previous) && 
ObjectHelper.isNotEmpty(list)) {
-            throw new IllegalStateException("multiple references with 
different handlers");
+            throw new IllegalStateException("Multiple references with 
different handlers");
         }
     }
 }
diff --git 
a/core/camel-base/src/main/java/org/apache/camel/processor/Pipeline.java 
b/core/camel-base/src/main/java/org/apache/camel/processor/Pipeline.java
index ee01a49..d39b02f 100644
--- a/core/camel-base/src/main/java/org/apache/camel/processor/Pipeline.java
+++ b/core/camel-base/src/main/java/org/apache/camel/processor/Pipeline.java
@@ -40,7 +40,6 @@ import org.apache.camel.support.service.ServiceHelper;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-
 import static org.apache.camel.processor.PipelineHelper.continueProcessing;
 
 /**

Reply via email to