changeset 1461:8885c463d99e

7902360: JMH should be buildable with JDK 11, 12, 13
author shade
date Thu, 17 Jan 2019 19:04:43 +0100
parents d99af3ecdfa7
children 71f636042ac4
files jmh-core/src/main/java/org/openjdk/jmh/profile/ExternalProfiler.java jmh-core/src/main/java/org/openjdk/jmh/profile/WinPerfAsmProfiler.java jmh-core/src/main/java/org/openjdk/jmh/runner/Runner.java jmh-core/src/main/java/org/openjdk/jmh/util/Utils.java pom.xml
diffstat 5 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-core/src/main/java/org/openjdk/jmh/profile/ExternalProfiler.java	Thu Jan 17 18:18:56 2019 +0100
+++ b/jmh-core/src/main/java/org/openjdk/jmh/profile/ExternalProfiler.java	Thu Jan 17 19:04:43 2019 +0100
@@ -69,6 +69,7 @@
      * after benchmark JVM had stopped.
      *
      * @param br benchmark result that was the result of the trial
+     * @param pid pid that the forked JVM had
      * @param stdOut file containing the standard output from the benchmark JVM
      * @param stdErr file containing the standard error from the benchmark JVM
      * @return profiler results
--- a/jmh-core/src/main/java/org/openjdk/jmh/profile/WinPerfAsmProfiler.java	Thu Jan 17 18:18:56 2019 +0100
+++ b/jmh-core/src/main/java/org/openjdk/jmh/profile/WinPerfAsmProfiler.java	Thu Jan 17 19:04:43 2019 +0100
@@ -78,9 +78,6 @@
     private OptionSpec<String> optXperfProviders;
     private OptionSpec<String> optSymbolDir;
 
-    /**
-     * Constructor.
-     */
     public WinPerfAsmProfiler(String initLine) throws ProfilerException {
         super(initLine, "SampledProfile");
 
--- a/jmh-core/src/main/java/org/openjdk/jmh/runner/Runner.java	Thu Jan 17 18:18:56 2019 +0100
+++ b/jmh-core/src/main/java/org/openjdk/jmh/runner/Runner.java	Thu Jan 17 19:04:43 2019 +0100
@@ -129,7 +129,7 @@
 
     /**
      * Print matching benchmarks with parameters into output.
-     * @param options
+     * @param options options to use.
      */
     public void listWithParams(CommandLineOptions options) {
         Set<BenchmarkListEntry> benchmarks = list.find(out, options.getIncludes(), options.getExcludes());
--- a/jmh-core/src/main/java/org/openjdk/jmh/util/Utils.java	Thu Jan 17 18:18:56 2019 +0100
+++ b/jmh-core/src/main/java/org/openjdk/jmh/util/Utils.java	Thu Jan 17 19:04:43 2019 +0100
@@ -546,6 +546,7 @@
      * Adapts Iterator for Iterable.
      * Can be iterated only once!
      *
+     * @param <T> element type
      * @param it iterator
      * @return iterable for given iterator
      */
--- a/pom.xml	Thu Jan 17 18:18:56 2019 +0100
+++ b/pom.xml	Thu Jan 17 19:04:43 2019 +0100
@@ -122,6 +122,7 @@
                 <artifactId>maven-javadoc-plugin</artifactId>
                 <configuration>
                     <quiet>true</quiet>
+                    <source>8</source>
                 </configuration>
                 <executions>
                     <execution>