This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch camel-3.18.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-3.18.x by this push:
new 893b929743e fix route reload with unassigned route ids
893b929743e is described below
commit 893b929743e70de00d3b3d868cf4978c00337ee4
Author: Claus Ibsen <[email protected]>
AuthorDate: Tue Dec 27 14:01:09 2022 +0100
fix route reload with unassigned route ids
---
.../main/java/org/apache/camel/support/RouteWatcherReloadStrategy.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/core/camel-support/src/main/java/org/apache/camel/support/RouteWatcherReloadStrategy.java
b/core/camel-support/src/main/java/org/apache/camel/support/RouteWatcherReloadStrategy.java
index ecf753715ac..faa64ed8997 100644
---
a/core/camel-support/src/main/java/org/apache/camel/support/RouteWatcherReloadStrategy.java
+++
b/core/camel-support/src/main/java/org/apache/camel/support/RouteWatcherReloadStrategy.java
@@ -271,7 +271,7 @@ public class RouteWatcherReloadStrategy extends
FileWatcherResourceReloadStrateg
StringJoiner sj = new StringJoiner("\n ");
for (String id : ids) {
Route route = getCamelContext().getRoute(id);
- if (route.isCustomId()) {
+ if (!route.isCustomId()) {
sj.add(route.getEndpoint().getEndpointUri());
}
}