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 2015/04/28 22:19:23 UTC

camel git commit: Fixed CS related to CAMEL-8714

Repository: camel
Updated Branches:
  refs/heads/master fa947f01e -> 70e07545d


Fixed CS related to CAMEL-8714


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

Branch: refs/heads/master
Commit: 70e07545d1cad86d299ae56ecec5e3fa2320c670
Parents: fa947f0
Author: Andrea Cosentino <an...@gmail.com>
Authored: Tue Apr 28 22:18:10 2015 +0200
Committer: Andrea Cosentino <an...@gmail.com>
Committed: Tue Apr 28 22:18:10 2015 +0200

----------------------------------------------------------------------
 .../component/openshift/OpenShiftProducer.java  | 40 ++++++++++----------
 1 file changed, 20 insertions(+), 20 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/70e07545/components/camel-openshift/src/main/java/org/apache/camel/component/openshift/OpenShiftProducer.java
----------------------------------------------------------------------
diff --git a/components/camel-openshift/src/main/java/org/apache/camel/component/openshift/OpenShiftProducer.java b/components/camel-openshift/src/main/java/org/apache/camel/component/openshift/OpenShiftProducer.java
index 09661f7..cb52efc 100644
--- a/components/camel-openshift/src/main/java/org/apache/camel/component/openshift/OpenShiftProducer.java
+++ b/components/camel-openshift/src/main/java/org/apache/camel/component/openshift/OpenShiftProducer.java
@@ -99,28 +99,28 @@ public class OpenShiftProducer extends DefaultProducer {
             doScaleDown(exchange, domain);
             break;
         case getDeploymentType:
-        	doGetDeploymentType(exchange, domain);
+            doGetDeploymentType(exchange, domain);
             break;
         case setDeploymentType:
-        	doSetDeploymentType(exchange, domain);
+            doSetDeploymentType(exchange, domain);
             break;
         case addEnvironmentVariable:
-        	doAddEnvironmentVariable(exchange, domain);
+            doAddEnvironmentVariable(exchange, domain);
             break;
         case updateEnvironmentVariable:
-        	doUpdateEnvironmentVariable(exchange, domain);
+            doUpdateEnvironmentVariable(exchange, domain);
             break;
         case getAllEnvironmentVariables:
-        	doGetAllEnvironmentVariables(exchange, domain);
+            doGetAllEnvironmentVariables(exchange, domain);
             break;
         case getEnvironmentVariableValue:
-        	doGetEnvironmentVariableValue(exchange, domain);
+            doGetEnvironmentVariableValue(exchange, domain);
             break;
         case removeEnvironmentVariable:
-        	doRemoveEnvironmentVariable(exchange, domain);
+            doRemoveEnvironmentVariable(exchange, domain);
             break;
         case getGearProfile:
-        	doGetGearProfile(exchange, domain);
+            doGetGearProfile(exchange, domain);
             break;            
         case list:
         default:
@@ -447,8 +447,8 @@ public class OpenShiftProducer extends DefaultProducer {
         } else {
             String variableName = exchange.getIn().getHeader(OpenShiftConstants.ENVIRONMENT_VARIABLE_NAME, getEndpoint().getApplication(), String.class);
             String variableValue = exchange.getIn().getHeader(OpenShiftConstants.ENVIRONMENT_VARIABLE_VALUE, getEndpoint().getApplication(), String.class);
-            if ((!app.canUpdateEnvironmentVariables())) {
-            	throw new CamelExchangeException("The application with id " + name + " can't update Environment Variables", exchange);
+            if (!app.canUpdateEnvironmentVariables()) {
+                throw new CamelExchangeException("The application with id " + name + " can't update Environment Variables", exchange);
             }
             if ((!ObjectHelper.isEmpty(variableName) && variableName != null) || (!ObjectHelper.isEmpty(variableValue) && variableValue != null)) {
                 IEnvironmentVariable result = app.addEnvironmentVariable(variableName, variableValue);
@@ -471,8 +471,8 @@ public class OpenShiftProducer extends DefaultProducer {
         } else {
             String variableName = exchange.getIn().getHeader(OpenShiftConstants.ENVIRONMENT_VARIABLE_NAME, getEndpoint().getApplication(), String.class);
             String variableValue = exchange.getIn().getHeader(OpenShiftConstants.ENVIRONMENT_VARIABLE_VALUE, getEndpoint().getApplication(), String.class);
-            if ((!app.canUpdateEnvironmentVariables())) {
-            	throw new CamelExchangeException("The application with id " + name + " can't update Environment Variables", exchange);
+            if (!app.canUpdateEnvironmentVariables()) {
+                throw new CamelExchangeException("The application with id " + name + " can't update Environment Variables", exchange);
             }
             if ((!ObjectHelper.isEmpty(variableName) && variableName != null) || (!ObjectHelper.isEmpty(variableValue) && variableValue != null)) {
                 IEnvironmentVariable result = app.updateEnvironmentVariable(variableName, variableValue);
@@ -494,10 +494,10 @@ public class OpenShiftProducer extends DefaultProducer {
             throw new CamelExchangeException("Application with id " + name + " not found.", exchange);
         } else {
             String variableName = exchange.getIn().getHeader(OpenShiftConstants.ENVIRONMENT_VARIABLE_NAME, getEndpoint().getApplication(), String.class);
-            if ((!app.canGetEnvironmentVariables())) {
-            	throw new CamelExchangeException("The application with id " + name + " can't get Environment Variables", exchange);
+            if (!app.canGetEnvironmentVariables()) {
+                throw new CamelExchangeException("The application with id " + name + " can't get Environment Variables", exchange);
             }
-            if ((!ObjectHelper.isEmpty(variableName) && variableName != null)) {
+            if (!ObjectHelper.isEmpty(variableName) && variableName != null) {
                 IEnvironmentVariable result = app.getEnvironmentVariable(variableName);
                 exchange.getIn().setBody(result.getValue());
             } else {
@@ -516,8 +516,8 @@ public class OpenShiftProducer extends DefaultProducer {
         if (app == null) {
             throw new CamelExchangeException("Application with id " + name + " not found.", exchange);
         } else {
-        	Map<String, IEnvironmentVariable> result = app.getEnvironmentVariables();
-        	exchange.getIn().setBody(result);
+            Map<String, IEnvironmentVariable> result = app.getEnvironmentVariables();
+            exchange.getIn().setBody(result);
         }
     }
     
@@ -532,10 +532,10 @@ public class OpenShiftProducer extends DefaultProducer {
             throw new CamelExchangeException("Application with id " + name + " not found.", exchange);
         } else {
             String variableName = exchange.getIn().getHeader(OpenShiftConstants.ENVIRONMENT_VARIABLE_NAME, getEndpoint().getApplication(), String.class);
-            if ((!app.canGetEnvironmentVariables())) {
-            	throw new CamelExchangeException("The application with id " + name + " can't get Environment Variables", exchange);
+            if (!app.canGetEnvironmentVariables()) {
+                throw new CamelExchangeException("The application with id " + name + " can't get Environment Variables", exchange);
             }
-            if ((!ObjectHelper.isEmpty(variableName) && variableName != null)) {
+            if (!ObjectHelper.isEmpty(variableName) && variableName != null) {
                 app.removeEnvironmentVariable(variableName);
                 exchange.getIn().setBody(variableName);
             } else {