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>
This commit is contained in:
Laszlo Hornyak 2013-10-11 20:29:45 +02:00
parent 6a396a9057
commit 336eb48f9b
1 changed files with 1 additions and 13 deletions

View File

@ -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) {