This is an automated email from the ASF dual-hosted git repository. aldettinger 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 a0a684a Fixed CS a0a684a is described below commit a0a684ae1b6f5f34f4400e713e6946f4c92ef09f Author: aldettinger <aldettin...@gmail.com> AuthorDate: Thu May 31 22:58:29 2018 +0200 Fixed CS --- .../src/main/java/org/apache/camel/cloud/ServiceDefinition.java | 2 +- .../org/apache/camel/impl/cloud/DefaultServiceCallProcessor.java | 2 +- .../src/main/java/org/apache/camel/util/CollectionHelper.java | 6 +++--- .../java/org/apache/camel/impl/cloud/ServiceDefinitionTest.java | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/camel-core/src/main/java/org/apache/camel/cloud/ServiceDefinition.java b/camel-core/src/main/java/org/apache/camel/cloud/ServiceDefinition.java index 8a0a3f6..a05d212 100644 --- a/camel-core/src/main/java/org/apache/camel/cloud/ServiceDefinition.java +++ b/camel-core/src/main/java/org/apache/camel/cloud/ServiceDefinition.java @@ -36,7 +36,7 @@ public interface ServiceDefinition { String SERVICE_META_HOST = "service.host"; String SERVICE_META_PORT = "service.port"; String SERVICE_META_ZONE = "service.zone"; - String SERVICE_META_PROTOCOL= "service.protocol"; + String SERVICE_META_PROTOCOL = "service.protocol"; String SERVICE_META_PATH = "service.path"; /** diff --git a/camel-core/src/main/java/org/apache/camel/impl/cloud/DefaultServiceCallProcessor.java b/camel-core/src/main/java/org/apache/camel/impl/cloud/DefaultServiceCallProcessor.java index f6b5cbf..215d3199 100644 --- a/camel-core/src/main/java/org/apache/camel/impl/cloud/DefaultServiceCallProcessor.java +++ b/camel-core/src/main/java/org/apache/camel/impl/cloud/DefaultServiceCallProcessor.java @@ -164,7 +164,7 @@ public class DefaultServiceCallProcessor extends ServiceSupport implements Async final String servicePath = applySimpleLanguage(contextPath, exchange); final String serviceScheme = applySimpleLanguage(scheme, exchange); - message.setHeader(ServiceCallConstants.SERVICE_CALL_URI,serviceUri); + message.setHeader(ServiceCallConstants.SERVICE_CALL_URI, serviceUri); message.setHeader(ServiceCallConstants.SERVICE_CALL_CONTEXT_PATH, servicePath); message.setHeader(ServiceCallConstants.SERVICE_CALL_SCHEME, serviceScheme); message.setHeader(ServiceCallConstants.SERVICE_NAME, serviceName); diff --git a/camel-core/src/main/java/org/apache/camel/util/CollectionHelper.java b/camel-core/src/main/java/org/apache/camel/util/CollectionHelper.java index 283682d..7a08238 100644 --- a/camel-core/src/main/java/org/apache/camel/util/CollectionHelper.java +++ b/camel-core/src/main/java/org/apache/camel/util/CollectionHelper.java @@ -176,11 +176,11 @@ public final class CollectionHelper { /** * Build a map from varargs. */ - public static <K, V> Map<K, V> mapOf(Supplier<Map<K,V>> creator, K key, V value, Object... keyVals) { + public static <K, V> Map<K, V> mapOf(Supplier<Map<K, V>> creator, K key, V value, Object... keyVals) { Map<K, V> map = creator.get(); map.put(key, value); - for(int i = 0; i < keyVals.length; i += 2) { + for (int i = 0; i < keyVals.length; i += 2) { map.put( (K) keyVals[i], (V) keyVals[i + 1] @@ -194,7 +194,7 @@ public final class CollectionHelper { /** * Build an immutable map from varargs. */ - public static <K, V> Map<K, V> immutableMapOf(Supplier<Map<K,V>> creator, K key, V value, Object... keyVals) { + public static <K, V> Map<K, V> immutableMapOf(Supplier<Map<K, V>> creator, K key, V value, Object... keyVals) { return Collections.unmodifiableMap( mapOf(creator, key, value, keyVals) ); diff --git a/camel-core/src/test/java/org/apache/camel/impl/cloud/ServiceDefinitionTest.java b/camel-core/src/test/java/org/apache/camel/impl/cloud/ServiceDefinitionTest.java index 6c32597..c44263a 100644 --- a/camel-core/src/test/java/org/apache/camel/impl/cloud/ServiceDefinitionTest.java +++ b/camel-core/src/test/java/org/apache/camel/impl/cloud/ServiceDefinitionTest.java @@ -20,14 +20,14 @@ import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; -import org.apache.camel.cloud.ServiceDefinition; -import org.junit.Test; - import static junit.framework.TestCase.assertEquals; import static junit.framework.TestCase.assertFalse; import static junit.framework.TestCase.assertNull; import static junit.framework.TestCase.assertTrue; +import org.apache.camel.cloud.ServiceDefinition; +import org.junit.Test; + public class ServiceDefinitionTest { @Test public void testParse() { -- To stop receiving notification emails like this one, please contact aldettin...@apache.org.