This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push: new 4be355f CAMEL-16840: skip option in camel-zookeeper that should not be in configurer 4be355f is described below commit 4be355f733e5036ed460d87587cde01102296656 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Wed Aug 4 06:54:52 2021 +0200 CAMEL-16840: skip option in camel-zookeeper that should not be in configurer --- .../zookeeper/cloud/ZooKeeperServiceDiscoveryFactoryConfigurer.java | 6 ++---- .../component/zookeeper/cloud/ZooKeeperServiceDiscoveryFactory.java | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/components/camel-zookeeper/src/generated/java/org/apache/camel/component/zookeeper/cloud/ZooKeeperServiceDiscoveryFactoryConfigurer.java b/components/camel-zookeeper/src/generated/java/org/apache/camel/component/zookeeper/cloud/ZooKeeperServiceDiscoveryFactoryConfigurer.java index 6202e1d..a06cb94 100644 --- a/components/camel-zookeeper/src/generated/java/org/apache/camel/component/zookeeper/cloud/ZooKeeperServiceDiscoveryFactoryConfigurer.java +++ b/components/camel-zookeeper/src/generated/java/org/apache/camel/component/zookeeper/cloud/ZooKeeperServiceDiscoveryFactoryConfigurer.java @@ -40,7 +40,7 @@ public class ZooKeeperServiceDiscoveryFactoryConfigurer extends org.apache.camel case "namespace": case "Namespace": target.setNamespace(property(camelContext, java.lang.String.class, value)); return true; case "nodes": - case "Nodes": target.setNodes(property(camelContext, java.util.List.class, value)); return true; + case "Nodes": target.setNodes(property(camelContext, java.lang.String.class, value)); return true; case "reconnectbasesleeptime": case "ReconnectBaseSleepTime": target.setReconnectBaseSleepTime(property(camelContext, long.class, value)); return true; case "reconnectbasesleeptimeunit": @@ -83,7 +83,7 @@ public class ZooKeeperServiceDiscoveryFactoryConfigurer extends org.apache.camel case "namespace": case "Namespace": return java.lang.String.class; case "nodes": - case "Nodes": return java.util.List.class; + case "Nodes": return java.lang.String.class; case "reconnectbasesleeptime": case "ReconnectBaseSleepTime": return long.class; case "reconnectbasesleeptimeunit": @@ -153,8 +153,6 @@ public class ZooKeeperServiceDiscoveryFactoryConfigurer extends org.apache.camel switch (ignoreCase ? name.toLowerCase() : name) { case "authinfolist": case "AuthInfoList": return org.apache.curator.framework.AuthInfo.class; - case "nodes": - case "Nodes": return java.lang.String.class; default: return null; } } diff --git a/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/cloud/ZooKeeperServiceDiscoveryFactory.java b/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/cloud/ZooKeeperServiceDiscoveryFactory.java index 7986730..de04d8a 100644 --- a/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/cloud/ZooKeeperServiceDiscoveryFactory.java +++ b/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/cloud/ZooKeeperServiceDiscoveryFactory.java @@ -68,11 +68,11 @@ public class ZooKeeperServiceDiscoveryFactory implements ServiceDiscoveryFactory return configuration.getNodes(); } - @Metadata(skip = true) public void setNodes(String nodes) { configuration.setNodes(nodes); } + @Metadata(skip = true) public void setNodes(List<String> nodes) { configuration.setNodes(nodes); }