You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2020/02/12 07:54:31 UTC

[camel] branch master updated: Camel-Bean: Fixed CS

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

acosentino 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 ef02725  Camel-Bean: Fixed CS
ef02725 is described below

commit ef02725a7a78415cf5f6da9cde8622e9cf886749
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Feb 12 08:54:04 2020 +0100

    Camel-Bean: Fixed CS
---
 .../org/apache/camel/language/bean/BeanLanguage.java    | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

diff --git a/components/camel-bean/src/main/java/org/apache/camel/language/bean/BeanLanguage.java b/components/camel-bean/src/main/java/org/apache/camel/language/bean/BeanLanguage.java
index 93192a4..5617831 100644
--- a/components/camel-bean/src/main/java/org/apache/camel/language/bean/BeanLanguage.java
+++ b/components/camel-bean/src/main/java/org/apache/camel/language/bean/BeanLanguage.java
@@ -55,12 +55,17 @@ public class BeanLanguage extends LanguageSupport implements GeneratedPropertyCo
             throw new IllegalStateException("Can only configure our own instance !");
         }
         switch (ignoreCase ? name.toLowerCase() : name) {
-            case "bean": setBean(PropertyConfigurerSupport.property(camelContext, Object.class, value)); return true;
-            case "beantype":
-            case "beanType": setBeanType(PropertyConfigurerSupport.property(camelContext, Class.class, value)); return true;
-            case "ref": setRef(PropertyConfigurerSupport.property(camelContext, String.class, value)); return true;
-            case "method": setMethod(PropertyConfigurerSupport.property(camelContext, String.class, value)); return true;
-            default: return false;
+        case "bean": 
+            setBean(PropertyConfigurerSupport.property(camelContext, Object.class, value)); return true;
+        case "beantype":
+        case "beanType": 
+            setBeanType(PropertyConfigurerSupport.property(camelContext, Class.class, value)); return true;
+        case "ref": 
+            setRef(PropertyConfigurerSupport.property(camelContext, String.class, value)); return true;
+        case "method": 
+            setMethod(PropertyConfigurerSupport.property(camelContext, String.class, value)); return true;
+        default: 
+            return false;
         }
     }