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/08/22 16:06:40 UTC

[02/10] camel git commit: Fixed CS. This closes #1132

Fixed CS. This closes #1132


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/dc82ed16
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/dc82ed16
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/dc82ed16

Branch: refs/heads/master
Commit: dc82ed1636baf45379d8fce0dfeb9b9b619ad464
Parents: 593c19a
Author: Claus Ibsen <da...@apache.org>
Authored: Mon Aug 22 18:01:38 2016 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Mon Aug 22 18:04:25 2016 +0200

----------------------------------------------------------------------
 .../org/apache/camel/component/restlet/RestletProducer.java  | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/dc82ed16/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/RestletProducer.java
----------------------------------------------------------------------
diff --git a/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/RestletProducer.java b/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/RestletProducer.java
index 10a2a93..4cf83c9 100644
--- a/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/RestletProducer.java
+++ b/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/RestletProducer.java
@@ -51,14 +51,14 @@ public class RestletProducer extends DefaultAsyncProducer {
         client.setContext(new Context());
         client.getContext().getParameters().add("socketTimeout", String.valueOf(endpoint.getSocketTimeout()));
         client.getContext().getParameters().add("socketConnectTimeoutMs", String.valueOf(endpoint.getSocketTimeout()));
-        RestletComponent component = (RestletComponent)endpoint.getComponent();
-        if(component.getMaxConnectionsPerHost() != null && component.getMaxConnectionsPerHost() > 0) {
+
+        RestletComponent component = (RestletComponent) endpoint.getComponent();
+        if (component.getMaxConnectionsPerHost() != null && component.getMaxConnectionsPerHost() > 0) {
             client.getContext().getParameters().add("maxConnectionsPerHost", String.valueOf(component.getMaxConnectionsPerHost()));
         }
-        if(component.getMaxTotalConnections() != null && component.getMaxTotalConnections() > 0) {
+        if (component.getMaxTotalConnections() != null && component.getMaxTotalConnections() > 0) {
             client.getContext().getParameters().add("maxTotalConnections", String.valueOf(component.getMaxTotalConnections()));
         }
-    
     }
 
     @Override