You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by la...@apache.org on 2015/05/05 07:22:11 UTC

stratos git commit: Fix minor formatting issues

Repository: stratos
Updated Branches:
  refs/heads/master 52c5e93d9 -> 4ac261cc0


Fix minor formatting issues


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

Branch: refs/heads/master
Commit: 4ac261cc0c9a640f5678112553405bc2a33cd0bc
Parents: 52c5e93
Author: Lahiru Sandaruwan <la...@apache.org>
Authored: Tue May 5 10:51:57 2015 +0530
Committer: Lahiru Sandaruwan <la...@apache.org>
Committed: Tue May 5 10:51:57 2015 +0530

----------------------------------------------------------------------
 .../autoscaler/applications/dependency/DependencyBuilder.java      | 2 +-
 .../stratos/autoscaler/applications/dependency/DependencyTree.java | 2 +-
 .../stratos/rest/endpoint/util/converter/ObjectConverter.java      | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/4ac261cc/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/applications/dependency/DependencyBuilder.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/applications/dependency/DependencyBuilder.java b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/applications/dependency/DependencyBuilder.java
index b3dfeb6..df453dc 100644
--- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/applications/dependency/DependencyBuilder.java
+++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/applications/dependency/DependencyBuilder.java
@@ -98,7 +98,7 @@ public class DependencyBuilder {
                                             component, dependencyTree);
                             String parentContextId = null;
                             ApplicationChildContext tmpParentContext = null;
-                            if(parentContext != null) {
+                            if (parentContext != null) {
                                 parentContextId = parentContext.getId();
                                 tmpParentContext = dependencyTree.
                                         getApplicationChildContextByIdInPrimaryTree(parentContextId);

http://git-wip-us.apache.org/repos/asf/stratos/blob/4ac261cc/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/applications/dependency/DependencyTree.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/applications/dependency/DependencyTree.java b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/applications/dependency/DependencyTree.java
index f6b11bc..693a963 100644
--- a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/applications/dependency/DependencyTree.java
+++ b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/applications/dependency/DependencyTree.java
@@ -110,7 +110,7 @@ public class DependencyTree {
         }
         return parentContexts;
     }
-    
+
     /**
      * Getting the next start able dependencies upon the activate event
      * received for a group/cluster which is part of this tree.

http://git-wip-us.apache.org/repos/asf/stratos/blob/4ac261cc/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/util/converter/ObjectConverter.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/util/converter/ObjectConverter.java b/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/util/converter/ObjectConverter.java
index 2c49d96..01f7c18 100644
--- a/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/util/converter/ObjectConverter.java
+++ b/components/org.apache.stratos.rest.endpoint/src/main/java/org/apache/stratos/rest/endpoint/util/converter/ObjectConverter.java
@@ -1720,7 +1720,7 @@ public class ObjectConverter {
         applicationPolicy.setAlgorithm(applicationPolicyBean.getAlgorithm());
         applicationPolicy.setNetworkPartitions(applicationPolicyBean.getNetworkPartitions());
         if (applicationPolicyBean.getProperties() != null) {
-            if (!applicationPolicyBean.getProperties().isEmpty()){
+            if (!applicationPolicyBean.getProperties().isEmpty()) {
                 applicationPolicy.setProperties(getASPropertiesFromCommonProperties(applicationPolicyBean.getProperties()));
             }
         }