This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch CAMEL-13870 in repository https://gitbox.apache.org/repos/asf/camel.git
commit 0be6f4fe115b9f46b585cf42763a885778ca8654 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Fri Aug 23 06:58:56 2019 +0200 CAMEL-13870: Fast property configuration of Camel endpoints. Work in progress. --- .../support/component/EndpointPropertyConfigurerSupport.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/core/camel-support/src/main/java/org/apache/camel/support/component/EndpointPropertyConfigurerSupport.java b/core/camel-support/src/main/java/org/apache/camel/support/component/EndpointPropertyConfigurerSupport.java index 406e5e1..55a47e1 100644 --- a/core/camel-support/src/main/java/org/apache/camel/support/component/EndpointPropertyConfigurerSupport.java +++ b/core/camel-support/src/main/java/org/apache/camel/support/component/EndpointPropertyConfigurerSupport.java @@ -17,8 +17,6 @@ package org.apache.camel.support.component; import org.apache.camel.CamelContext; -import org.apache.camel.NoTypeConversionAvailableException; -import org.apache.camel.RuntimeCamelException; import org.apache.camel.spi.EndpointPropertyConfigurer; public abstract class EndpointPropertyConfigurerSupport implements EndpointPropertyConfigurer { @@ -47,11 +45,7 @@ public abstract class EndpointPropertyConfigurerSupport implements EndpointPrope } } - try { - return camelContext.getTypeConverter().mandatoryConvertTo(type, value); - } catch (NoTypeConversionAvailableException e) { - throw RuntimeCamelException.wrapRuntimeException(e); - } + return camelContext.getTypeConverter().convertTo(type, value); } }