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 2019/10/30 04:37:35 UTC

[camel] 01/02: CAMEL-14076: Fixed CS

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

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 8de7e4ee64899762c81572ee7555c49fdfe5afd9
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Wed Oct 30 05:35:15 2019 +0100

    CAMEL-14076: Fixed CS
---
 .../java/org/apache/camel/component/hdfs/HdfsConfiguration.java     | 6 +++---
 .../java/org/apache/camel/component/hdfs/HdfsFileSystemType.java    | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/HdfsConfiguration.java b/components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/HdfsConfiguration.java
index 8b8dcea..e51f1be 100644
--- a/components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/HdfsConfiguration.java
+++ b/components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/HdfsConfiguration.java
@@ -87,7 +87,7 @@ public class HdfsConfiguration {
     private String owner;
 
     @UriParam(label = "consumer", defaultValue = "false")
-    private boolean streamDownload = false;
+    private boolean streamDownload;
 
     @UriParam
     private String namedNodes;
@@ -622,11 +622,11 @@ public class HdfsConfiguration {
     /**
      * Get the label of the hdfs file system like: HOST_NAME:PORT/PATH
      *
-     * @param path
+     * @param path the file path
      * @return HOST_NAME:PORT/PATH
      */
     String getFileSystemLabel(String path) {
-        if(hasClusterConfiguration()) {
+        if (hasClusterConfiguration()) {
             return String.format("%s/%s", getHostName(), path);
         } else {
             return String.format("%s:%s/%s", getHostName(), getPort(), path);
diff --git a/components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/HdfsFileSystemType.java b/components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/HdfsFileSystemType.java
index 75ec6a1..eccc348 100644
--- a/components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/HdfsFileSystemType.java
+++ b/components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/HdfsFileSystemType.java
@@ -37,7 +37,7 @@ public enum HdfsFileSystemType {
             StringBuilder hpath = new StringBuilder();
             hpath.append("hdfs://");
             hpath.append(config.getHostName());
-            if(!config.hasClusterConfiguration()) {
+            if (!config.hasClusterConfiguration()) {
                 hpath.append(':').append(config.getPort());
             }
             hpath.append(config.getPath());