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 2022/05/17 11:59:27 UTC

[camel] branch main updated: Regen for commit dc9ebe6dd1d1e73619dfd1ede2d7bc4e11afa16a

This is an automated email from the ASF dual-hosted git repository.

acosentino 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 24e17a0623d Regen for commit dc9ebe6dd1d1e73619dfd1ede2d7bc4e11afa16a
24e17a0623d is described below

commit 24e17a0623d6f95fd7ea4270bc950096e0e085fb
Author: davsclaus <da...@users.noreply.github.com>
AuthorDate: Tue May 17 11:45:31 2022 +0000

    Regen for commit dc9ebe6dd1d1e73619dfd1ede2d7bc4e11afa16a
    
    Signed-off-by: GitHub <no...@github.com>
---
 .../java/org/apache/camel/dsl/support/RouteBuilderLoaderSupport.java | 5 ++---
 .../src/main/java/org/apache/camel/dsl/jbang/core/commands/Pipe.java | 4 ++--
 .../src/main/java/org/apache/camel/dsl/jbang/core/commands/Run.java  | 2 +-
 3 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/dsl/camel-dsl-support/src/main/java/org/apache/camel/dsl/support/RouteBuilderLoaderSupport.java b/dsl/camel-dsl-support/src/main/java/org/apache/camel/dsl/support/RouteBuilderLoaderSupport.java
index 05aaae5d806..5c810021c35 100644
--- a/dsl/camel-dsl-support/src/main/java/org/apache/camel/dsl/support/RouteBuilderLoaderSupport.java
+++ b/dsl/camel-dsl-support/src/main/java/org/apache/camel/dsl/support/RouteBuilderLoaderSupport.java
@@ -127,8 +127,8 @@ public abstract class RouteBuilderLoaderSupport extends RoutesBuilderLoaderSuppo
     /**
      * Gets the input stream to the resource
      *
-     * @param resource  the resource
-     * @return  the input stream
+     * @param  resource the resource
+     * @return          the input stream
      */
     protected InputStream resourceInputStream(Resource resource) throws IOException {
         // load into memory as we need to skip a specific first-line if present
@@ -136,7 +136,6 @@ public abstract class RouteBuilderLoaderSupport extends RoutesBuilderLoaderSuppo
         return new ByteArrayInputStream(data.getBytes(StandardCharsets.UTF_8));
     }
 
-
     /**
      * Loads {@link RoutesBuilder} from {@link Resource} from the DSL implementation.
      *
diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/Pipe.java b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/Pipe.java
index 3051ca18158..c6234f3a6e2 100644
--- a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/Pipe.java
+++ b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/Pipe.java
@@ -16,10 +16,10 @@
  */
 package org.apache.camel.dsl.jbang.core.commands;
 
-import picocli.CommandLine;
-
 import java.util.concurrent.Callable;
 
+import picocli.CommandLine;
+
 @CommandLine.Command(name = "pipe", description = "Run Camel in pipe and filters mode for terminal scripting")
 class Pipe implements Callable<Integer> {
 
diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/Run.java b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/Run.java
index b6a1affaf49..61cd977eb48 100644
--- a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/Run.java
+++ b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/Run.java
@@ -188,7 +188,7 @@ class Run implements Callable<Integer> {
     }
 
     protected Integer runPipe(String file) throws Exception {
-        this.files = new String[]{file};
+        this.files = new String[] { file };
         pipeRun = true;
         return run();
     }