changeset 105:3f3f5ea4277d

Annotation methods should be implicitly public.
author shade
date Thu, 08 Aug 2013 14:53:05 +0400
parents 24e09cb79197
children 223d5012fd4e
files jmh-core/src/main/java/org/openjdk/jmh/annotations/Fork.java jmh-core/src/main/java/org/openjdk/jmh/annotations/GenerateMicroBenchmark.java jmh-core/src/main/java/org/openjdk/jmh/annotations/Measurement.java jmh-core/src/main/java/org/openjdk/jmh/annotations/MicroBenchmark.java jmh-core/src/main/java/org/openjdk/jmh/annotations/OperationsPerInvocation.java jmh-core/src/main/java/org/openjdk/jmh/annotations/OutputTimeUnit.java jmh-core/src/main/java/org/openjdk/jmh/annotations/Setup.java jmh-core/src/main/java/org/openjdk/jmh/annotations/State.java jmh-core/src/main/java/org/openjdk/jmh/annotations/TearDown.java jmh-core/src/main/java/org/openjdk/jmh/annotations/Threads.java jmh-core/src/main/java/org/openjdk/jmh/annotations/Warmup.java
diffstat 11 files changed, 19 insertions(+), 19 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-core/src/main/java/org/openjdk/jmh/annotations/Fork.java	Thu Aug 08 14:39:49 2013 +0400
+++ b/jmh-core/src/main/java/org/openjdk/jmh/annotations/Fork.java	Thu Aug 08 14:53:05 2013 +0400
@@ -43,19 +43,19 @@
 public @interface Fork {
 
     /** specifies number of times harness should fork, zero means "no fork" */
-    public int value() default 1;
+    int value() default 1;
 
     /** enforce strict JVM args, replaces any implicit jvm args */
-    public String jvmArgs() default AnnotationUtils.PARAM_NOT_SET;
+    String jvmArgs() default AnnotationUtils.PARAM_NOT_SET;
 
     /** prepend these arguments in the command line */
-    public String jvmArgsPrepend() default AnnotationUtils.PARAM_NOT_SET;
+    String jvmArgsPrepend() default AnnotationUtils.PARAM_NOT_SET;
 
     /** append these arguments in the command line */
-    public String jvmArgsAppend() default AnnotationUtils.PARAM_NOT_SET;
+    String jvmArgsAppend() default AnnotationUtils.PARAM_NOT_SET;
 
     /** ignore results first warmups forks */
-    public int warmups() default 0;
+    int warmups() default 0;
 
 }
 
--- a/jmh-core/src/main/java/org/openjdk/jmh/annotations/GenerateMicroBenchmark.java	Thu Aug 08 14:39:49 2013 +0400
+++ b/jmh-core/src/main/java/org/openjdk/jmh/annotations/GenerateMicroBenchmark.java	Thu Aug 08 14:53:05 2013 +0400
@@ -83,7 +83,7 @@
      * Use {@link BenchmarkMode} instead.
      */
     @Deprecated
-    public BenchmarkType[] value() default { BenchmarkType.OpsPerTimeUnit };
+    BenchmarkType[] value() default { BenchmarkType.OpsPerTimeUnit };
 
 
 }
--- a/jmh-core/src/main/java/org/openjdk/jmh/annotations/Measurement.java	Thu Aug 08 14:39:49 2013 +0400
+++ b/jmh-core/src/main/java/org/openjdk/jmh/annotations/Measurement.java	Thu Aug 08 14:53:05 2013 +0400
@@ -42,13 +42,13 @@
 public @interface Measurement {
 
     /** Amount of iterations */
-    public int iterations() default -1;
+    int iterations() default -1;
 
     /** time of each iteration */
-    public long time() default -1L;
+    long time() default -1L;
 
     /** time unit of the time value */
-    public TimeUnit timeUnit() default TimeUnit.SECONDS;
+    TimeUnit timeUnit() default TimeUnit.SECONDS;
 
 }
 
--- a/jmh-core/src/main/java/org/openjdk/jmh/annotations/MicroBenchmark.java	Thu Aug 08 14:39:49 2013 +0400
+++ b/jmh-core/src/main/java/org/openjdk/jmh/annotations/MicroBenchmark.java	Thu Aug 08 14:53:05 2013 +0400
@@ -48,6 +48,6 @@
      * Type of benchmark.
      * See {@link Mode} for available benchmark types.
      */
-    public Mode value() default Mode.Throughput;
+    Mode value() default Mode.Throughput;
 
 }
--- a/jmh-core/src/main/java/org/openjdk/jmh/annotations/OperationsPerInvocation.java	Thu Aug 08 14:39:49 2013 +0400
+++ b/jmh-core/src/main/java/org/openjdk/jmh/annotations/OperationsPerInvocation.java	Thu Aug 08 14:53:05 2013 +0400
@@ -65,7 +65,7 @@
 
     /**
      * Annotation specifies how much to increase the operations count for each invocation of the test-method. */
-    public long value() default 1;
+    long value() default 1;
 
 }
 
--- a/jmh-core/src/main/java/org/openjdk/jmh/annotations/OutputTimeUnit.java	Thu Aug 08 14:39:49 2013 +0400
+++ b/jmh-core/src/main/java/org/openjdk/jmh/annotations/OutputTimeUnit.java	Thu Aug 08 14:53:05 2013 +0400
@@ -41,7 +41,7 @@
 
     /**
      * What time unit to use in the result type of the generated method. */
-    public TimeUnit value() default TimeUnit.MILLISECONDS;
+    TimeUnit value() default TimeUnit.MILLISECONDS;
 
 }
 
--- a/jmh-core/src/main/java/org/openjdk/jmh/annotations/Setup.java	Thu Aug 08 14:39:49 2013 +0400
+++ b/jmh-core/src/main/java/org/openjdk/jmh/annotations/Setup.java	Thu Aug 08 14:53:05 2013 +0400
@@ -38,7 +38,7 @@
 public @interface Setup {
 
     /** Level of this method. @see Level. Default is Trial.*/
-    public Level value() default Level.Trial;
+    Level value() default Level.Trial;
 
 }
 
--- a/jmh-core/src/main/java/org/openjdk/jmh/annotations/State.java	Thu Aug 08 14:39:49 2013 +0400
+++ b/jmh-core/src/main/java/org/openjdk/jmh/annotations/State.java	Thu Aug 08 14:53:05 2013 +0400
@@ -47,6 +47,6 @@
      * State scope.
      * @return state scope
      */
-    public Scope value() default Scope.Thread;
+    Scope value() default Scope.Thread;
 
 }
--- a/jmh-core/src/main/java/org/openjdk/jmh/annotations/TearDown.java	Thu Aug 08 14:39:49 2013 +0400
+++ b/jmh-core/src/main/java/org/openjdk/jmh/annotations/TearDown.java	Thu Aug 08 14:53:05 2013 +0400
@@ -38,6 +38,6 @@
 public @interface TearDown {
 
     /** Level of this method. @see Level. Default is Trial.*/
-    public Level value() default Level.Trial;
+    Level value() default Level.Trial;
 
 }
--- a/jmh-core/src/main/java/org/openjdk/jmh/annotations/Threads.java	Thu Aug 08 14:39:49 2013 +0400
+++ b/jmh-core/src/main/java/org/openjdk/jmh/annotations/Threads.java	Thu Aug 08 14:53:05 2013 +0400
@@ -41,7 +41,7 @@
 public @interface Threads {
 
     /** Amount of threads */
-    public int value() default 1;
+    int value() default 1;
 
 }
 
--- a/jmh-core/src/main/java/org/openjdk/jmh/annotations/Warmup.java	Thu Aug 08 14:39:49 2013 +0400
+++ b/jmh-core/src/main/java/org/openjdk/jmh/annotations/Warmup.java	Thu Aug 08 14:53:05 2013 +0400
@@ -42,12 +42,12 @@
 public @interface Warmup {
 
     /** Amount of iterations */
-    public int iterations() default -1;
+    int iterations() default -1;
 
     /** time of each iteration */
-    public long time() default -1L;
+    long time() default -1L;
 
-    public TimeUnit timeUnit() default TimeUnit.SECONDS;
+    TimeUnit timeUnit() default TimeUnit.SECONDS;
 
 }