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 2016/04/04 15:47:29 UTC
[5/6] camel git commit: CAMEL-9808: fixed checkstyle violations;
prefer javadoc over @UriParam description
CAMEL-9808: fixed checkstyle violations; prefer javadoc over @UriParam
description
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/0c90b324
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/0c90b324
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/0c90b324
Branch: refs/heads/camel-2.17.x
Commit: 0c90b324ce4c1394f48276211303010247338183
Parents: 57a2c71
Author: Thomas Küstermann <th...@outlook.com>
Authored: Mon Apr 4 15:02:50 2016 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Mon Apr 4 15:47:07 2016 +0200
----------------------------------------------------------------------
.../file/remote/SftpConfiguration.java | 18 ++++++-------
.../component/file/remote/SftpOperations.java | 28 ++++++++++----------
2 files changed, 23 insertions(+), 23 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/0c90b324/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpConfiguration.java
----------------------------------------------------------------------
diff --git a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpConfiguration.java b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpConfiguration.java
index 7e740ae..9da9e81 100644
--- a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpConfiguration.java
+++ b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpConfiguration.java
@@ -55,7 +55,7 @@ public class SftpConfiguration extends RemoteFileConfiguration {
private int serverAliveCountMax = 1;
@UriParam(label = "producer,advanced")
private String chmod;
- // comma separated list of ciphers.
+ // comma separated list of ciphers.
// null means default jsch list will be used
@UriParam(label = "security")
private String ciphers;
@@ -65,7 +65,7 @@ public class SftpConfiguration extends RemoteFileConfiguration {
private String preferredAuthentications;
@UriParam(defaultValue = "WARN")
private LoggingLevel jschLoggingLevel = LoggingLevel.WARN;
- @UriParam(label="advanced", description="Specifies how many requests may be outstanding at any one time.")
+ @UriParam(label = "advanced")
private Integer bulkRequests;
public SftpConfiguration() {
@@ -255,7 +255,7 @@ public class SftpConfiguration extends RemoteFileConfiguration {
public void setPreferredAuthentications(String pAuthentications) {
this.preferredAuthentications = pAuthentications;
}
-
+
public String getPreferredAuthentications() {
return preferredAuthentications;
}
@@ -271,16 +271,16 @@ public class SftpConfiguration extends RemoteFileConfiguration {
public void setJschLoggingLevel(LoggingLevel jschLoggingLevel) {
this.jschLoggingLevel = jschLoggingLevel;
}
-
+
/**
* Specifies how many requests may be outstanding at any one time. Increasing this value may
* slightly improve file transfer speed but will increase memory usage.
*/
public void setBulkRequests(Integer bulkRequests) {
- this.bulkRequests = bulkRequests;
- }
-
+ this.bulkRequests = bulkRequests;
+ }
+
public Integer getBulkRequests() {
- return bulkRequests;
- }
+ return bulkRequests;
+ }
}
http://git-wip-us.apache.org/repos/asf/camel/blob/0c90b324/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpOperations.java
----------------------------------------------------------------------
diff --git a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpOperations.java b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpOperations.java
index ea17aeb..e9982a4 100644
--- a/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpOperations.java
+++ b/components/camel-ftp/src/main/java/org/apache/camel/component/file/remote/SftpOperations.java
@@ -165,23 +165,23 @@ public class SftpOperations implements RemoteFileOperations<ChannelSftp.LsEntry>
return true;
}
-
+
private void configureBulkRequests() {
- try {
- tryConfigureBulkRequests();
- } catch (JSchException e) {
- throw new GenericFileOperationFailedException("Failed to configure number of bulk requests", e);
- }
+ try {
+ tryConfigureBulkRequests();
+ } catch (JSchException e) {
+ throw new GenericFileOperationFailedException("Failed to configure number of bulk requests", e);
+ }
}
-
+
private void tryConfigureBulkRequests() throws JSchException {
- Integer bulkRequests = endpoint.getConfiguration().getBulkRequests();
-
- if (bulkRequests != null) {
- LOG.trace("configuring channel to use up to {} bulk request(s)", bulkRequests);
-
- channel.setBulkRequests(bulkRequests);
- }
+ Integer bulkRequests = endpoint.getConfiguration().getBulkRequests();
+
+ if (bulkRequests != null) {
+ LOG.trace("configuring channel to use up to {} bulk request(s)", bulkRequests);
+
+ channel.setBulkRequests(bulkRequests);
+ }
}
protected Session createSession(final RemoteFileConfiguration configuration) throws JSchException {