You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by gz...@apache.org on 2017/10/07 12:28:05 UTC
camel git commit: Replace deprecated API calls
Repository: camel
Updated Branches:
refs/heads/master 145295824 -> 3c14611b1
Replace deprecated API calls
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/3c14611b
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/3c14611b
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/3c14611b
Branch: refs/heads/master
Commit: 3c14611b1a3e9072f5c56f69925137768cd1083f
Parents: 1452958
Author: Gregor Zurowski <gr...@zurowski.org>
Authored: Sat Oct 7 14:27:57 2017 +0200
Committer: Gregor Zurowski <gr...@zurowski.org>
Committed: Sat Oct 7 14:27:57 2017 +0200
----------------------------------------------------------------------
.../main/java/org/apache/camel/example/springboot/CamelRouter.java | 2 +-
.../java/org/apache/camel/example/springboot/UserServiceImpl.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/3c14611b/examples/camel-example-spring-boot-rest-swagger/src/main/java/org/apache/camel/example/springboot/CamelRouter.java
----------------------------------------------------------------------
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 0d5897c..b8060f3 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
@@ -47,7 +47,7 @@ public class CamelRouter extends RouteBuilder {
.consumes("application/json")
.produces("application/json")
- .get().description("Find all users").outTypeList(User.class)
+ .get().description("Find all users").outType(User[].class)
.responseMessage().code(200).message("All users successfully returned").endResponseMessage()
.to("bean:userService?method=findUsers")
http://git-wip-us.apache.org/repos/asf/camel/blob/3c14611b/examples/camel-example-spring-boot-rest-swagger/src/main/java/org/apache/camel/example/springboot/UserServiceImpl.java
----------------------------------------------------------------------
diff --git a/examples/camel-example-spring-boot-rest-swagger/src/main/java/org/apache/camel/example/springboot/UserServiceImpl.java b/examples/camel-example-spring-boot-rest-swagger/src/main/java/org/apache/camel/example/springboot/UserServiceImpl.java
index b2ce33e..7cd564a 100644
--- a/examples/camel-example-spring-boot-rest-swagger/src/main/java/org/apache/camel/example/springboot/UserServiceImpl.java
+++ b/examples/camel-example-spring-boot-rest-swagger/src/main/java/org/apache/camel/example/springboot/UserServiceImpl.java
@@ -25,7 +25,7 @@ import org.springframework.stereotype.Service;
@Service("userService")
public class UserServiceImpl implements UserService {
- private final Map<Integer, User> users = new TreeMap<Integer, User>();
+ private final Map<Integer, User> users = new TreeMap<>();
public UserServiceImpl() {
users.put(1, new User(1, "John Coltrane"));