You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2015/11/11 08:16:31 UTC
[08/12] camel git commit: Fixed CS
Fixed CS
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/7f961480
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/7f961480
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/7f961480
Branch: refs/heads/camel-2.16.x
Commit: 7f961480a2be5175d3ca7d883f72f701477dd800
Parents: 5d43573
Author: Claus Ibsen <da...@apache.org>
Authored: Wed Nov 11 08:18:22 2015 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Wed Nov 11 08:19:11 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/7f961480/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 e864707..33d479b 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
@@ -56,7 +56,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/7f961480/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
}
}