Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 6A148200BB2 for ; Fri, 14 Oct 2016 10:14:04 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 68BA6160ADD; Fri, 14 Oct 2016 08:14:04 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 90141160AFA for ; Fri, 14 Oct 2016 10:14:03 +0200 (CEST) Received: (qmail 34123 invoked by uid 500); 14 Oct 2016 08:14:02 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 33846 invoked by uid 99); 14 Oct 2016 08:14:02 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Oct 2016 08:14:02 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id D7314E6998; Fri, 14 Oct 2016 08:14:01 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: davsclaus@apache.org To: commits@camel.apache.org Date: Fri, 14 Oct 2016 08:14:07 -0000 Message-Id: <22a20975099c4d46957d1862bcf4c078@git.apache.org> In-Reply-To: <222bbe9e4ac94510b1eb545260c57c59@git.apache.org> References: <222bbe9e4ac94510b1eb545260c57c59@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [7/8] camel git commit: CAMEL-10385: fix checkstyle errors archived-at: Fri, 14 Oct 2016 08:14:04 -0000 CAMEL-10385: fix checkstyle errors Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/ca3d735b Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/ca3d735b Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/ca3d735b Branch: refs/heads/master Commit: ca3d735b8f02c7fe545483c579b1f696e8054b1f Parents: b3848d6 Author: dmitriy Authored: Thu Oct 13 09:52:29 2016 -0400 Committer: Claus Ibsen Committed: Fri Oct 14 09:33:22 2016 +0200 ---------------------------------------------------------------------- .../camel/spring/boot/SpringTypeConverter.java | 2 +- .../spring/boot/issues/SimpleOgnlTest.java | 48 ++++++++++---------- 2 files changed, 25 insertions(+), 25 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/ca3d735b/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/SpringTypeConverter.java ---------------------------------------------------------------------- diff --git a/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/SpringTypeConverter.java b/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/SpringTypeConverter.java index c4aff73..3818148 100644 --- a/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/SpringTypeConverter.java +++ b/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/SpringTypeConverter.java @@ -44,7 +44,7 @@ public class SpringTypeConverter extends TypeConverterSupport { // do not attempt to convert List -> Map. Ognl expression may use this converter as a fallback expecting null if (type.isAssignableFrom(Map.class) && (value.getClass().isArray() || value instanceof List)) { - return null; + return null; } for (ConversionService conversionService : conversionServices) { http://git-wip-us.apache.org/repos/asf/camel/blob/ca3d735b/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/issues/SimpleOgnlTest.java ---------------------------------------------------------------------- diff --git a/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/issues/SimpleOgnlTest.java b/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/issues/SimpleOgnlTest.java index 969ad50..72024e2 100644 --- a/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/issues/SimpleOgnlTest.java +++ b/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/issues/SimpleOgnlTest.java @@ -36,34 +36,34 @@ import org.springframework.test.context.junit4.SpringRunner; @EnableAutoConfiguration @SpringBootTest(classes = { SimpleOgnlTest.class }) public class SimpleOgnlTest { - @EndpointInject(uri = "mock:result") - protected MockEndpoint resultEndpoint; + @EndpointInject(uri = "mock:result") + protected MockEndpoint resultEndpoint; - @Produce(uri = "direct:start") - protected ProducerTemplate template; + @Produce(uri = "direct:start") + protected ProducerTemplate template; - @Test - public void testSimpleOgnlListExpression() throws Exception { - List list = new ArrayList(); - list.add("one"); - list.add("two"); + @Test + public void testSimpleOgnlListExpression() throws Exception { + List list = new ArrayList(); + list.add("one"); + list.add("two"); - resultEndpoint.expectedBodiesReceived(list.get(0)); + resultEndpoint.expectedBodiesReceived(list.get(0)); - template.sendBody(list); + template.sendBody(list); - resultEndpoint.assertIsSatisfied(); - } + resultEndpoint.assertIsSatisfied(); + } - @Configuration - public static class ContextConfig { - @Bean - public RouteBuilder route() { - return new RouteBuilder() { - public void configure() { - from("direct:start").setBody(simple("${body[0]}")).to("mock:result"); - } - }; - } - } + @Configuration + public static class ContextConfig { + @Bean + public RouteBuilder route() { + return new RouteBuilder() { + public void configure() { + from("direct:start").setBody(simple("${body[0]}")).to("mock:result"); + } + }; + } + } }