gnodet-bot commented on code in PR #27525:
URL: https://github.com/apache/camel/pull/27525#discussion_r4220455410


##########
components/camel-spring-parent/camel-spring/src/main/java/org/apache/camel/language/spel/RootObject.java:
##########
@@ -86,4 +86,27 @@ public <T> T getHeader(String name, Class<T> type) {
         return exchange.getMessage().getHeader(name, type);
     }
 
+    /**
+     * The variables of the exchange (exchange-scoped only; global and route 
variables are not in this map).
+     */

Review Comment:
   🔧 **Nit:** Missing `@see` cross-reference. Both MVEL and OGNL 
`RootObject.getVariables()` have this tag to guide users toward 
`getVariable(name)` for global/route-prefixed lookups. SpEL should match.
   
   ```suggestion
       /**
        * The variables of the exchange (exchange-scoped only; global and route 
variables are not in this map).
        *
        * @see #getVariable(String) to look up a global or route variable by 
its prefixed name
        */
   ```



-- 
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