Fixed CS
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/27a9b395 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/27a9b395 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/27a9b395 Branch: refs/heads/camel-2.15.x Commit: 27a9b3953c3647f70cf5a189833089578d5fc6ef Parents: 0711eda Author: Claus Ibsen <davscl...@apache.org> Authored: Wed Nov 11 08:18:22 2015 +0100 Committer: Claus Ibsen <davscl...@apache.org> Committed: Wed Nov 11 08:19:48 2015 +0100 ---------------------------------------------------------------------- .../java/org/apache/camel/spring/boot/RoutesCollector.java | 2 +- .../spring/boot/parent/SpringBootRefreshContextTest.java | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/27a9b395/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/RoutesCollector.java ---------------------------------------------------------------------- diff --git a/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/RoutesCollector.java b/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/RoutesCollector.java index 2d164cd..51cc984 100644 --- a/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/RoutesCollector.java +++ b/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/RoutesCollector.java @@ -52,7 +52,7 @@ public class RoutesCollector implements ApplicationListener<ContextRefreshedEven @Override public void onApplicationEvent(ContextRefreshedEvent contextRefreshedEvent) { ApplicationContext applicationContext = contextRefreshedEvent.getApplicationContext(); - CamelContext camelContext = contextRefreshedEvent.getApplicationContext().getBean(CamelContext.class); + CamelContext camelContext = contextRefreshedEvent.getApplicationContext().getBean(CamelContext.class); // if we have not yet started if (camelContext.getStatus() == ServiceStatus.Stopped) { LOG.debug("Post-processing CamelContext bean: {}", camelContext.getName()); http://git-wip-us.apache.org/repos/asf/camel/blob/27a9b395/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/parent/SpringBootRefreshContextTest.java ---------------------------------------------------------------------- diff --git a/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/parent/SpringBootRefreshContextTest.java b/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/parent/SpringBootRefreshContextTest.java index dd2dc3b..d1adfcf 100644 --- a/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/parent/SpringBootRefreshContextTest.java +++ b/components/camel-spring-boot/src/test/java/org/apache/camel/spring/boot/parent/SpringBootRefreshContextTest.java @@ -33,10 +33,10 @@ public class SpringBootRefreshContextTest { public void shouldOnlyCollectRoutesOnce() { GenericApplicationContext parent = new GenericApplicationContext(); parent.refresh(); - ConfigurableApplicationContext context = new SpringApplicationBuilder(Configuration.class).web(false).parent(parent).run(); - ContextRefreshedEvent refreshEvent = new ContextRefreshedEvent(context); - RoutesCollector collector = context.getBean(RoutesCollector.class); - collector.onApplicationEvent(refreshEvent); //no changes should happen here + ConfigurableApplicationContext context = new SpringApplicationBuilder(Configuration.class).web(false).parent(parent).run(); + ContextRefreshedEvent refreshEvent = new ContextRefreshedEvent(context); + RoutesCollector collector = context.getBean(RoutesCollector.class); + collector.onApplicationEvent(refreshEvent); //no changes should happen here } }