Mass removal of all Tabs (Style Warnings)
[aaf/authz.git] / misc / rosetta / src / test / java / org / onap / aaf / misc / rosetta / test / Report.java
index 5c709ad..df4fec0 100644 (file)
@@ -28,40 +28,40 @@ import org.onap.aaf.misc.env.Trans;
 import org.onap.aaf.misc.env.Trans.Metric;
 
 public class Report {
-       float total;
-       float buckets[];
-       String[] names;
-       private int iterations;
-       private int count;
-       
-       public Report(int iters, String ... names) {
-               iterations = iters;
-               buckets = new float[names.length];
-               this.names = names;
-               total=0;
-               count = 0;
-       }
-       
-       public void glean(Trans trans, int ... type) {
-               Metric m = trans.auditTrail(0, null, type);
-               total+=m.total;
-               int min = Math.min(buckets.length, m.buckets.length);
-               for(int b=0;b<min;++b) {
-                       buckets[b]+=m.buckets[b];
-               }
-       }
-       
-       public boolean go() {
-               return ++count<iterations;
-       }
-       
-       
-       public void report(Writer sbw) throws IOException {
-               sbw.append("\n"+count + " entries, Total Time: " + total + "ms, Avg Time: " + total/count + "ms\n");
-               int min = Math.min(buckets.length, names.length);
-               for(int i=0;i<min;++i) {
-                       sbw.append("  Time: " + names[i] + ' ' + buckets[i] + "ms, Avg Time: " + buckets[i]/count + "ms\n");
-               }
+    float total;
+    float buckets[];
+    String[] names;
+    private int iterations;
+    private int count;
+    
+    public Report(int iters, String ... names) {
+        iterations = iters;
+        buckets = new float[names.length];
+        this.names = names;
+        total=0;
+        count = 0;
+    }
+    
+    public void glean(Trans trans, int ... type) {
+        Metric m = trans.auditTrail(0, null, type);
+        total+=m.total;
+        int min = Math.min(buckets.length, m.buckets.length);
+        for(int b=0;b<min;++b) {
+            buckets[b]+=m.buckets[b];
+        }
+    }
+    
+    public boolean go() {
+        return ++count<iterations;
+    }
+    
+    
+    public void report(Writer sbw) throws IOException {
+        sbw.append("\n"+count + " entries, Total Time: " + total + "ms, Avg Time: " + total/count + "ms\n");
+        int min = Math.min(buckets.length, names.length);
+        for(int i=0;i<min;++i) {
+            sbw.append("  Time: " + names[i] + ' ' + buckets[i] + "ms, Avg Time: " + buckets[i]/count + "ms\n");
+        }
 
-       }
+    }
 }