You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ko...@apache.org on 2013/11/07 21:23:06 UTC

[2/2] git commit: updated refs/heads/master to 465dee0

fixed Rules

it was no longer working, it must be fixed for those who want to read it.

Signed-off-by: Laszlo Hornyak <la...@gmail.com>


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

Branch: refs/heads/master
Commit: 336eb48f9b6769355da46888922fe51e8195f208
Parents: 6a396a9
Author: Laszlo Hornyak <la...@gmail.com>
Authored: Fri Oct 11 20:29:45 2013 +0200
Committer: Laszlo Hornyak <la...@gmail.com>
Committed: Thu Nov 7 21:18:52 2013 +0100

----------------------------------------------------------------------
 .../api/src/org/apache/cloudstack/engine/Rules.java   | 14 +-------------
 1 file changed, 1 insertion(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/336eb48f/engine/api/src/org/apache/cloudstack/engine/Rules.java
----------------------------------------------------------------------
diff --git a/engine/api/src/org/apache/cloudstack/engine/Rules.java b/engine/api/src/org/apache/cloudstack/engine/Rules.java
index b700fa5..04b17a2 100755
--- a/engine/api/src/org/apache/cloudstack/engine/Rules.java
+++ b/engine/api/src/org/apache/cloudstack/engine/Rules.java
@@ -21,7 +21,6 @@ package org.apache.cloudstack.engine;
 import java.util.ArrayList;
 import java.util.List;
 
-import com.cloud.utils.StringUtils;
 
 /**
  * Rules specifies all rules about developing and using CloudStack Orchestration
@@ -55,18 +54,7 @@ public class Rules {
 
     private static void printRule(String rule) {
         System.out.print("API Rule: ");
-        String skip = "";
-        int brk = 0;
-        while (true) {
-            int stop = StringUtils.formatForOutput(rule, brk, 75 - skip.length(), ' ');
-            if (stop < 0) {
-                break;
-            }
-            System.out.print(skip);
-            skip = "          ";
-            System.out.println(rule.substring(brk, stop).trim());
-            brk = stop;
-        } 
+        System.out.println(rule);
     }
 
     public static void main(String[] args) {