Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2009-05-05 11:15:10 +0000
committerEike Stepper2009-05-05 11:15:10 +0000
commit43cd384b7a2f24ffd643f60cd4b69f7e775db1e6 (patch)
tree73b0a435504ea741b94f8cf0e1f3335380c4d133
parent0cc9e6b894a3253f7d644c22525e25f6406aef53 (diff)
downloadcdo-43cd384b7a2f24ffd643f60cd4b69f7e775db1e6.tar.gz
cdo-43cd384b7a2f24ffd643f60cd4b69f7e775db1e6.tar.xz
cdo-43cd384b7a2f24ffd643f60cd4b69f7e775db1e6.zip
formatting
-rw-r--r--releng/org.eclipse.emf.cdo.formatchecker/src/org/eclipse/emf/cdo/formatchecker/FormatChecker.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/releng/org.eclipse.emf.cdo.formatchecker/src/org/eclipse/emf/cdo/formatchecker/FormatChecker.java b/releng/org.eclipse.emf.cdo.formatchecker/src/org/eclipse/emf/cdo/formatchecker/FormatChecker.java
index 37e8bd7f68..3f89f3c89b 100644
--- a/releng/org.eclipse.emf.cdo.formatchecker/src/org/eclipse/emf/cdo/formatchecker/FormatChecker.java
+++ b/releng/org.eclipse.emf.cdo.formatchecker/src/org/eclipse/emf/cdo/formatchecker/FormatChecker.java
@@ -517,6 +517,12 @@ public class FormatChecker
private static void report()
{
+ if (complaints.isEmpty())
+ {
+ System.out.println("No violations found.");
+ return;
+ }
+
List<Entry<String, List<Integer>>> list = new ArrayList<Entry<String, List<Integer>>>(complaints.entrySet());
Collections.sort(list, new Comparator<Entry<String, List<Integer>>>()
{
@@ -537,6 +543,18 @@ public class FormatChecker
}
}
+ try
+ {
+ Thread.sleep(50);
+ }
+ catch (InterruptedException ex)
+ {
+ return;
+ }
+
+ System.out.println();
+ System.out.println();
+ System.out.println();
for (Entry<String, List<Integer>> entry : list)
{
System.out.println("ignore(\"" + entry.getKey() + "\", " + entry.getValue().size() + ");");

Back to the top