changeset 1312:d74b2861222c

7901643: Avoid @javax.annotation.Generated for better post-modular compatibility
author shade
date Mon, 28 Mar 2016 19:01:57 +0300
parents b198e38d6e61
children 43bfb46b7fa3
files jmh-core/src/main/java/org/openjdk/jmh/generators/core/BenchmarkGenerator.java
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-core/src/main/java/org/openjdk/jmh/generators/core/BenchmarkGenerator.java	Mon Mar 28 17:41:15 2016 +0300
+++ b/jmh-core/src/main/java/org/openjdk/jmh/generators/core/BenchmarkGenerator.java	Mon Mar 28 19:01:57 2016 +0300
@@ -39,7 +39,6 @@
 import org.openjdk.jmh.util.Multimap;
 import org.openjdk.jmh.util.SampleBuffer;
 
-import javax.annotation.Generated;
 import java.io.IOException;
 import java.io.PrintWriter;
 import java.io.Reader;
@@ -541,7 +540,6 @@
         states.addImports(writer);
 
         // Write class header
-        writer.println("@Generated(\"" + BenchmarkGenerator.class.getCanonicalName() + "\")");
         writer.println("public final class " + info.generatedClassName + " {");
         writer.println();
 
@@ -582,7 +580,7 @@
         Class<?>[] imports = new Class<?>[]{
                 List.class, AtomicInteger.class,
                 Collection.class, ArrayList.class,
-                TimeUnit.class, Generated.class, CompilerControl.class,
+                TimeUnit.class, CompilerControl.class,
                 InfraControl.class, ThreadParams.class,
                 BenchmarkTaskResult.class,
                 Result.class, ThroughputResult.class, AverageTimeResult.class,