changeset 22613:f08fed409c49

c.o.g.microbenchmarks: fix checkstyle issues.
author Josef Eisl <josef.eisl@jku.at>
date Wed, 09 Sep 2015 13:38:21 +0200
parents ac9b27dd4df6
children 9f0e536ee385
files graal/com.oracle.graal.microbenchmarks/src/com/oracle/graal/microbenchmarks/graal/ArrayDuplicationBenchmark.java graal/com.oracle.graal.microbenchmarks/src/com/oracle/graal/microbenchmarks/graal/NodeBenchmark.java graal/com.oracle.graal.microbenchmarks/src/com/oracle/graal/microbenchmarks/graal/SchedulePhaseBenchmark.java graal/com.oracle.graal.microbenchmarks/src/com/oracle/graal/microbenchmarks/graal/util/NodesState.java
diffstat 4 files changed, 11 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.microbenchmarks/src/com/oracle/graal/microbenchmarks/graal/ArrayDuplicationBenchmark.java	Wed Sep 09 14:27:14 2015 +0200
+++ b/graal/com.oracle.graal.microbenchmarks/src/com/oracle/graal/microbenchmarks/graal/ArrayDuplicationBenchmark.java	Wed Sep 09 13:38:21 2015 +0200
@@ -57,7 +57,8 @@
     @Benchmark
     @OperationsPerInvocation(TESTSIZE)
     public Object[] normalArraycopy() {
-        for (int i = 0, j = 0; i < TESTSIZE; i++) {
+        int j = 0;
+        for (int i = 0; i < TESTSIZE; i++) {
             dummy[j++] = normalArraycopy(testObjectArray[i]);
         }
         return dummy;
@@ -72,7 +73,8 @@
     @Benchmark
     @OperationsPerInvocation(TESTSIZE)
     public Object[] arraysCopyOf() {
-        for (int i = 0, j = 0; i < TESTSIZE; i++) {
+        int j = 0;
+        for (int i = 0; i < TESTSIZE; i++) {
             dummy[j++] = arraysCopyOf(testObjectArray[i]);
         }
         return dummy;
@@ -85,7 +87,8 @@
     @Benchmark
     @OperationsPerInvocation(TESTSIZE)
     public Object[] cloneObjectArray() {
-        for (int i = 0, j = 0; i < TESTSIZE; i++) {
+        int j = 0;
+        for (int i = 0; i < TESTSIZE; i++) {
             dummy[j++] = arraysClone(testObjectArray[i]);
         }
         return dummy;
--- a/graal/com.oracle.graal.microbenchmarks/src/com/oracle/graal/microbenchmarks/graal/NodeBenchmark.java	Wed Sep 09 14:27:14 2015 +0200
+++ b/graal/com.oracle.graal.microbenchmarks/src/com/oracle/graal/microbenchmarks/graal/NodeBenchmark.java	Wed Sep 09 13:38:21 2015 +0200
@@ -79,6 +79,7 @@
         }
     }
 
+    // Checkstyle: stop method name check
     @Benchmark
     @Warmup(iterations = 20)
     public int valueEquals_STRING_EQUALS(StringEquals s) {
@@ -126,4 +127,5 @@
         }
         return result;
     }
+    // Checkstyle: resume method name check
 }
--- a/graal/com.oracle.graal.microbenchmarks/src/com/oracle/graal/microbenchmarks/graal/SchedulePhaseBenchmark.java	Wed Sep 09 14:27:14 2015 +0200
+++ b/graal/com.oracle.graal.microbenchmarks/src/com/oracle/graal/microbenchmarks/graal/SchedulePhaseBenchmark.java	Wed Sep 09 13:38:21 2015 +0200
@@ -58,6 +58,7 @@
         return result;
     }
 
+    // Checkstyle: stop method name check
     @MethodSpec(declaringClass = SchedulePhaseBenchmark.class, name = "intersectionSnippet")
     public static class IntersectionState_LATEST_OPTIMAL extends ScheduleState {
         public IntersectionState_LATEST_OPTIMAL() {
@@ -93,4 +94,5 @@
     public void intersection_EARLIEST_OPTIMAL(IntersectionState_EARLIEST_OPTIMAL s) {
         s.schedule.apply(s.graph);
     }
+    // Checkstyle: resume method name check
 }
--- a/graal/com.oracle.graal.microbenchmarks/src/com/oracle/graal/microbenchmarks/graal/util/NodesState.java	Wed Sep 09 14:27:14 2015 +0200
+++ b/graal/com.oracle.graal.microbenchmarks/src/com/oracle/graal/microbenchmarks/graal/util/NodesState.java	Wed Sep 09 13:38:21 2015 +0200
@@ -96,4 +96,4 @@
             }
         }
     }
-}
\ No newline at end of file
+}