camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject [1/2] camel git commit: CAMEL-10978: Fixed CS
Date Tue, 14 Mar 2017 11:19:58 GMT
Repository: camel
Updated Branches:
  refs/heads/master 854b7ea5e -> 4e1cfa87c


CAMEL-10978: Fixed CS


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/4e1cfa87
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/4e1cfa87
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/4e1cfa87

Branch: refs/heads/master
Commit: 4e1cfa87c4e33b999da30cdb78905b0f9992d9dd
Parents: ac12e52
Author: Andrea Cosentino <ancosen@gmail.com>
Authored: Tue Mar 14 11:24:58 2017 +0100
Committer: Andrea Cosentino <ancosen@gmail.com>
Committed: Tue Mar 14 12:18:58 2017 +0100

----------------------------------------------------------------------
 .../component/hazelcast/HazelcastComponent.java | 30 ++++++++++----------
 1 file changed, 15 insertions(+), 15 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/4e1cfa87/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/HazelcastComponent.java
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/HazelcastComponent.java
b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/HazelcastComponent.java
index c9ac8a0..dfa2b0f 100644
--- a/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/HazelcastComponent.java
+++ b/components/camel-hazelcast/src/main/java/org/apache/camel/component/hazelcast/HazelcastComponent.java
@@ -49,10 +49,10 @@ import org.apache.camel.util.ResourceHelper;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-import static org.apache.camel.component.hazelcast.HazelcastConstants.HAZELCAST_CONFIGU_PARAM;
-import static org.apache.camel.component.hazelcast.HazelcastConstants.HAZELCAST_CONFIGU_URI_PARAM;
 import static org.apache.camel.component.hazelcast.HazelcastConstants.HAZELCAST_CLIENT_CONFIGU_PARAM;
 import static org.apache.camel.component.hazelcast.HazelcastConstants.HAZELCAST_CLIENT_CONFIGU_URI_PARAM;
+import static org.apache.camel.component.hazelcast.HazelcastConstants.HAZELCAST_CONFIGU_PARAM;
+import static org.apache.camel.component.hazelcast.HazelcastConstants.HAZELCAST_CONFIGU_URI_PARAM;
 import static org.apache.camel.component.hazelcast.HazelcastConstants.HAZELCAST_INSTANCE_NAME_PARAM;
 import static org.apache.camel.component.hazelcast.HazelcastConstants.HAZELCAST_INSTANCE_PARAM;
 import static org.apache.camel.util.ObjectHelper.removeStartingCharacters;
@@ -80,12 +80,12 @@ public class HazelcastComponent extends UriEndpointComponent {
     protected Endpoint createEndpoint(String uri, String remaining, Map<String, Object>
parameters) throws Exception {
 
         // use the given hazelcast Instance or create one if not given
-    	HazelcastInstance hzInstance;
-    	if (ObjectHelper.equal(hazelcastMode, HazelcastConstants.HAZELCAST_NODE_MODE)) {
+        HazelcastInstance hzInstance;
+        if (ObjectHelper.equal(hazelcastMode, HazelcastConstants.HAZELCAST_NODE_MODE)) {
             hzInstance = getOrCreateHzInstance(getCamelContext(), parameters);
-    	} else {
-    		hzInstance = getOrCreateHzClientInstance(getCamelContext(), parameters);
-    	}
+        } else {
+            hzInstance = getOrCreateHzClientInstance(getCamelContext(), parameters);
+        }
 
         String defaultOperation = getAndRemoveOrResolveReferenceParameter(parameters, HazelcastConstants.OPERATION_PARAM,
String.class);
         if (defaultOperation == null) {
@@ -218,18 +218,18 @@ public class HazelcastComponent extends UriEndpointComponent {
     }
 
     public String getHazelcastMode() {
-		return hazelcastMode;
-	}
+        return hazelcastMode;
+    }
 
     /**
      * The hazelcast mode reference which kind of instance should be used.
      * If you don't specify the mode, then the node mode will be the default. 
      */
-	public void setHazelcastMode(String hazelcastMode) {
-		this.hazelcastMode = hazelcastMode;
-	}
+    public void setHazelcastMode(String hazelcastMode) {
+        this.hazelcastMode = hazelcastMode;
+    }
 
-	private HazelcastInstance getOrCreateHzInstance(CamelContext context, Map<String, Object>
parameters) throws Exception {
+    private HazelcastInstance getOrCreateHzInstance(CamelContext context, Map<String,
Object> parameters) throws Exception {
         HazelcastInstance hzInstance = null;
         Config config = null;
 
@@ -280,8 +280,8 @@ public class HazelcastComponent extends UriEndpointComponent {
 
         return hzInstance == null ? hazelcastInstance : hzInstance;
     }
-	
-	private HazelcastInstance getOrCreateHzClientInstance(CamelContext context, Map<String,
Object> parameters) throws Exception {
+
+    private HazelcastInstance getOrCreateHzClientInstance(CamelContext context, Map<String,
Object> parameters) throws Exception {
         HazelcastInstance hzInstance = null;
         ClientConfig config = null;
 


Mime
View raw message