You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2022/08/13 08:33:49 UTC

[camel] branch main updated: Polished

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 27bb3ca7b04 Polished
27bb3ca7b04 is described below

commit 27bb3ca7b045221168e9e6c6bd3e61419c25b915
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Sat Aug 13 10:31:51 2022 +0200

    Polished
---
 .../main/java/org/apache/camel/dsl/jbang/core/commands/Bind.java    | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/Bind.java b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/Bind.java
index 1542381e664..63841173d84 100644
--- a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/Bind.java
+++ b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/Bind.java
@@ -50,7 +50,7 @@ class Bind extends CamelCommand {
     @CommandLine.Parameters(description = "Sink such as a Kamelet or Camel endpoint uri", arity = "1")
     private String sink;
 
-    @CommandLine.Parameters(description = "Name of binding file", arity = "1")
+    @CommandLine.Parameters(description = "Name of binding file to be saved", arity = "1")
     private String file;
 
     public Bind(CamelJBangMain main) {
@@ -94,8 +94,8 @@ class Bind extends CamelCommand {
     protected String kameletProperties(String kamelet) throws Exception {
         StringBuilder sb = new StringBuilder();
 
-        InputStream is = null;
-        String loc = null;
+        InputStream is;
+        String loc;
 
         // try local disk first before github
         Resource res = new DefaultResourceResolvers.FileResolver().resolve("file:" + kamelet + ".kamelet.yaml");