You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2023/05/29 14:30:32 UTC
[camel] branch camel-3.x updated: Regen for commit ef05846b0db52d27626c38eb20590aa3d9b6425f
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch camel-3.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-3.x by this push:
new 5116ed7af5e Regen for commit ef05846b0db52d27626c38eb20590aa3d9b6425f
5116ed7af5e is described below
commit 5116ed7af5e85a9667bcf39787891dbe8fece468
Author: davsclaus <da...@users.noreply.github.com>
AuthorDate: Mon May 29 14:28:40 2023 +0000
Regen for commit ef05846b0db52d27626c38eb20590aa3d9b6425f
Signed-off-by: GitHub <no...@github.com>
---
.../java/org/apache/camel/dsl/jbang/core/commands/CamelCommand.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/CamelCommand.java b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/CamelCommand.java
index afbb0dc4dc6..ccba4ccb621 100644
--- a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/CamelCommand.java
+++ b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/CamelCommand.java
@@ -79,12 +79,12 @@ public abstract class CamelCommand implements Callable<Integer> {
var provider = spec.defaultValueProvider();
String defaultValue = provider != null ? provider.defaultValue(argSpec) : null;
if (defaultValue != null &&
- argSpec instanceof CommandLine.Model.OptionSpec) {
+ argSpec instanceof CommandLine.Model.OptionSpec) {
CommandLine.Model.OptionSpec optionSpec = (CommandLine.Model.OptionSpec) argSpec;
for (String name : optionSpec.names()) {
String placeholder = "$" + StringHelper.after(name, "--");
if (argSpec.getValue() != null &&
- argSpec.getValue().toString().contains(placeholder)) {
+ argSpec.getValue().toString().contains(placeholder)) {
argSpec.setValue(argSpec.getValue().toString().replace(placeholder, defaultValue));
}
}