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

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


The following commit(s) were added to refs/heads/primary by this push:
     new 6fdbd218cb3 CAMEL-20048: findSingleByType should be consistent. Added 
mandatory variant and NoSuchBeanTypeException that better reflect this.
6fdbd218cb3 is described below

commit 6fdbd218cb3d8d3602066d8ca9f557d3ebb6f320
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Thu Oct 26 09:01:37 2023 +0200

    CAMEL-20048: findSingleByType should be consistent. Added mandatory variant 
and NoSuchBeanTypeException that better reflect this.
---
 .../java/org/apache/camel/impl/engine/CamelPostProcessorHelper.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/CamelPostProcessorHelper.java
 
b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/CamelPostProcessorHelper.java
index cfdfa6f5729..ebced29de92 100644
--- 
a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/CamelPostProcessorHelper.java
+++ 
b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/CamelPostProcessorHelper.java
@@ -36,7 +36,7 @@ import org.apache.camel.Endpoint;
 import org.apache.camel.FluentProducerTemplate;
 import org.apache.camel.IsSingleton;
 import org.apache.camel.MultipleConsumersSupport;
-import org.apache.camel.NoSuchBeanException;
+import org.apache.camel.NoSuchBeanTypeException;
 import org.apache.camel.PollingConsumer;
 import org.apache.camel.Producer;
 import org.apache.camel.ProducerTemplate;
@@ -337,7 +337,7 @@ public class CamelPostProcessorHelper implements 
CamelContextAware {
                     }
                     return answer;
                 }
-                throw new NoSuchBeanException(null, type.getName());
+                throw new NoSuchBeanTypeException(type);
             } else {
                 return found;
             }

Reply via email to