This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch sandbox/camel-3.x in repository https://gitbox.apache.org/repos/asf/camel.git
commit 127b0e55eda0a4cec320ca1fc3019be8a67059f1 Author: Dmitry Volodin <[email protected]> AuthorDate: Tue Nov 13 16:53:26 2018 +0300 CAMEL-12908: Fix CS --- .../org/apache/camel/model/rest/RestDefinition.java | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/camel-core/src/main/java/org/apache/camel/model/rest/RestDefinition.java b/camel-core/src/main/java/org/apache/camel/model/rest/RestDefinition.java index dd7ddc0..d672225 100644 --- a/camel-core/src/main/java/org/apache/camel/model/rest/RestDefinition.java +++ b/camel-core/src/main/java/org/apache/camel/model/rest/RestDefinition.java @@ -853,27 +853,7 @@ public class RestDefinition extends OptionalIdentifiedDefinition<RestDefinition> if (outType != null) { options.put("outType", outType); } - // if no route id has been set, then use the verb id as route id - /* - if (!route.hasCustomIdAssigned()) { - // use id of verb as route id - String id = verb.getId(); - if (id != null) { - route.setId(id); - } - } - */ - - /* - String routeId = verb.idOrCreate(camelContext.getNodeIdFactory()); - - if (!verb.getUsedForGeneratingNodeId()) { - routeId = route.idOrCreate(camelContext.getNodeIdFactory()); - } - verb.setRouteId(routeId); - options.put("routeId", routeId); - */ if (component != null && !component.isEmpty()) { options.put("componentName", component); } @@ -967,7 +947,6 @@ public class RestDefinition extends OptionalIdentifiedDefinition<RestDefinition> // the route should be from this rest endpoint route.fromRest(from); - //route.routeId(routeId); route.setRestDefinition(this); answer.add(route); }
