davsclaus commented on code in PR #27835:
URL: https://github.com/apache/camel/pull/27835#discussion_r4291679962


##########
core/camel-api/src/main/java/org/apache/camel/Route.java:
##########
@@ -378,19 +378,23 @@ default Resource getTemplatedRouteResource() {
     String getRouteNote();
 
     /**
-     * Get the route type.
+     * Gets the route model (such as the route definition) this route was 
created from.
      *
-     * Important: is null after the route has been created.
-     *
-     * @return the route type during creation of the route, is null after the 
route has been created.
+     * @return the route model, or null if this route was not created from a 
model
      */
     @Nullable
     NamedNode getRoute();
 
     /**
      * Clears the route model when its no longer needed.

Review Comment:
   Nit (non-blocking): the summary still says the method clears the model, but 
it is now a no-op (and "its" should be "it's").
   ```suggestion
        * Previously cleared the route model after the route was created. This 
method is now a no-op.
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to