Fixed formatting issues

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

Branch: refs/heads/master
Commit: 4db5fcc13b8c61e559c30378320408236f9da1ef
Parents: 806a615
Author: Pubudu Gunatilaka <[email protected]>
Authored: Tue May 19 11:40:29 2015 +0530
Committer: Imesh Gunaratne <[email protected]>
Committed: Tue May 19 15:29:54 2015 +0530

----------------------------------------------------------------------
 .../java/org/apache/stratos/cli/RestCommandLineService.java    | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/4db5fcc1/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/RestCommandLineService.java
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/RestCommandLineService.java
 
b/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/RestCommandLineService.java
index a6fd1a9..f878e5f 100644
--- 
a/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/RestCommandLineService.java
+++ 
b/components/org.apache.stratos.cli/src/main/java/org/apache/stratos/cli/RestCommandLineService.java
@@ -508,11 +508,11 @@ public class RestCommandLineService {
                     + ENDPOINT_ADD_TENANT, jsonString);
 
             int responseCode = response.getStatusLine().getStatusCode();
-            if (responseCode ==201) {
+            if (responseCode == 201) {
                 System.out.println("Tenant added successfully: " + domain);
             } else {
                 String resultString = CliUtils.getHttpResponseString(response);
-                String errorMsg= gson.fromJson(resultString, 
ResponseMessageBean.class).getMessage();
+                String errorMsg = gson.fromJson(resultString, 
ResponseMessageBean.class).getMessage();
                 System.out.println(errorMsg);
             }
         } catch (Exception e) {
@@ -1077,7 +1077,7 @@ public class RestCommandLineService {
             array = list.toArray(array);
 
             System.out.println("Autoscaling policies found:");
-            CliUtils.printTable(array, rowMapper, "ID", "Requests In 
Flight","Memory Consumption","Load Average");
+            CliUtils.printTable(array, rowMapper, "ID", "Requests In Flight", 
"Memory Consumption", "Load Average");
         } catch (Exception e) {
             String message = "Could not list autoscaling policies";
             printError(message, e);

Reply via email to