gnodet-bot commented on code in PR #27584:
URL: https://github.com/apache/camel/pull/27584#discussion_r4221547640
##########
core/camel-api/src/main/java/org/apache/camel/spi/UnitOfWork.java:
##########
@@ -247,6 +247,24 @@ public interface UnitOfWork {
*/
int routeStackLevel(boolean includeRouteTemplate, boolean includeKamelet);
+ /**
+ * Gets the number of routes on the route stack that this {@link
UnitOfWork} currently is being routed through,
+ * which match the given filter.
+ * <p/>
+ * For example to know whether the current route is the outermost route of
a route group on the stack.
+ * <p/>
+ * The default returns {@code 0}, which means a custom {@link UnitOfWork}
that does not override this method will
+ * not benefit from the route-group deduplication in {@code
ManagedRouteGroup}. Implementations that maintain their
+ * own route stack should override this method.
+ *
+ * @param filter the filter
+ * @return the number of matching routes on the route stack
+ * @since 4.23
Review Comment:
📝 **Wrong `@since` tag for backport branch**
This method is being introduced into the `camel-4.22.x` line (next release:
4.22.2), but the tag says `4.23`. Users of the 4.22.x branch will encounter
this API starting from 4.22.2, not 4.23.
```suggestion
* @since 4.22
```
--
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]