You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by dm...@apache.org on 2018/08/15 06:36:47 UTC
[camel] branch master updated: CAMEL-12729: Fix CS
This is an automated email from the ASF dual-hosted git repository.
dmvolod 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 188f5b9 CAMEL-12729: Fix CS
188f5b9 is described below
commit 188f5b9f9452dd0ba04ada31aa3d85efb0e5489c
Author: Dmitry Volodin <dm...@gmail.com>
AuthorDate: Wed Aug 15 09:36:15 2018 +0300
CAMEL-12729: Fix CS
---
.../org/apache/camel/example/spring/boot/rest/jpa/Application.java | 6 +++---
.../main/java/org/apache/camel/example/springboot/CamelRouter.java | 3 +--
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/examples/camel-example-spring-boot-rest-jpa/src/main/java/org/apache/camel/example/spring/boot/rest/jpa/Application.java b/examples/camel-example-spring-boot-rest-jpa/src/main/java/org/apache/camel/example/spring/boot/rest/jpa/Application.java
index da17c01..9145e38 100644
--- a/examples/camel-example-spring-boot-rest-jpa/src/main/java/org/apache/camel/example/spring/boot/rest/jpa/Application.java
+++ b/examples/camel-example-spring-boot-rest-jpa/src/main/java/org/apache/camel/example/spring/boot/rest/jpa/Application.java
@@ -28,13 +28,13 @@ import org.springframework.stereotype.Component;
@SpringBootApplication
public class Application extends SpringBootServletInitializer {
+ @Autowired
+ private Environment env;
+
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
- @Autowired
- private Environment env;
-
@Component
class RestApi extends RouteBuilder {
diff --git a/examples/camel-example-spring-boot-rest-swagger/src/main/java/org/apache/camel/example/springboot/CamelRouter.java b/examples/camel-example-spring-boot-rest-swagger/src/main/java/org/apache/camel/example/springboot/CamelRouter.java
index d6c7591..5a80602 100644
--- a/examples/camel-example-spring-boot-rest-swagger/src/main/java/org/apache/camel/example/springboot/CamelRouter.java
+++ b/examples/camel-example-spring-boot-rest-swagger/src/main/java/org/apache/camel/example/springboot/CamelRouter.java
@@ -16,6 +16,7 @@
*/
package org.apache.camel.example.springboot;
+import org.apache.camel.Exchange;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.model.rest.RestBindingMode;
import org.springframework.beans.factory.annotation.Autowired;
@@ -26,8 +27,6 @@ import org.springframework.stereotype.Component;
import static org.apache.camel.model.rest.RestParamType.body;
import static org.apache.camel.model.rest.RestParamType.path;
-import org.apache.camel.Exchange;
-
/**
* A simple Camel REST DSL route with Swagger API documentation.
*/