Skip to content

Commit 336eb48

Browse files
committed
fixed Rules
it was no longer working, it must be fixed for those who want to read it. Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com>
1 parent 6a396a9 commit 336eb48

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

  • engine/api/src/org/apache/cloudstack/engine

engine/api/src/org/apache/cloudstack/engine/Rules.java

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import java.util.ArrayList;
2222
import java.util.List;
2323

24-
import com.cloud.utils.StringUtils;
2524

2625
/**
2726
* Rules specifies all rules about developing and using CloudStack Orchestration
@@ -55,18 +54,7 @@ public static List<String> whenWritingNewApis() {
5554

5655
private static void printRule(String rule) {
5756
System.out.print("API Rule: ");
58-
String skip = "";
59-
int brk = 0;
60-
while (true) {
61-
int stop = StringUtils.formatForOutput(rule, brk, 75 - skip.length(), ' ');
62-
if (stop < 0) {
63-
break;
64-
}
65-
System.out.print(skip);
66-
skip = " ";
67-
System.out.println(rule.substring(brk, stop).trim());
68-
brk = stop;
69-
}
57+
System.out.println(rule);
7058
}
7159

7260
public static void main(String[] args) {

0 commit comments

Comments
 (0)