camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [03/13] camel git commit: Polished
Date Sun, 03 May 2015 09:03:57 GMT
Polished


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

Branch: refs/heads/master
Commit: 06d5547102620b417f888a9fa838f2e1fb29b98b
Parents: 511aa2e
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Sun May 3 08:03:42 2015 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Sun May 3 10:52:35 2015 +0200

----------------------------------------------------------------------
 .../apache/camel/component/hazelcast/HazelcastComponent.java  | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/06d55471/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 4890738..1b51ba8 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
@@ -174,19 +174,16 @@ public class HazelcastComponent extends UriEndpointComponent {
     private HazelcastInstance getOrCreateHzInstance(Map<String, Object> parameters)
{
 
         // Query param named 'hazelcastInstance' (if exists) overrides the instance that
was set
-        HazelcastInstance hzInstance = resolveAndRemoveReferenceParameter(parameters, HAZELCAST_INSTANCE_PARAM,
-                HazelcastInstance.class);
+        HazelcastInstance hzInstance = resolveAndRemoveReferenceParameter(parameters, HAZELCAST_INSTANCE_PARAM,
HazelcastInstance.class);
 
         // check if an already created instance is given then just get instance by its name.
-        if (hzInstance == null && parameters.get(HAZELCAST_INSTANCE_NAME_PARAM) !=
null)
-        {
+        if (hzInstance == null && parameters.get(HAZELCAST_INSTANCE_NAME_PARAM) !=
null) {
             hzInstance = Hazelcast.getHazelcastInstanceByName((String) parameters.get(HAZELCAST_INSTANCE_NAME_PARAM));
             parameters.remove(HAZELCAST_INSTANCE_NAME_PARAM);
         }
 
         // Now create onw instance component
         if (hzInstance == null) {
-
             if (hazelcastInstance == null) {
                 createOwnInstance = true;
                 hazelcastInstance = createOwnInstance();


Mime
View raw message