changeset 153:2621152f8474

Prune redundant Option fields.
author shade
date Tue, 27 Aug 2013 20:29:51 +0400
parents 9b7bbf28d685
children b6cfcb9b53a6
files jmh-core/src/main/java/org/openjdk/jmh/runner/BaseRunner.java jmh-core/src/main/java/org/openjdk/jmh/runner/ForkedRunner.java jmh-core/src/main/java/org/openjdk/jmh/runner/Runner.java
diffstat 3 files changed, 1 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-core/src/main/java/org/openjdk/jmh/runner/BaseRunner.java	Tue Aug 27 18:53:26 2013 +0400
+++ b/jmh-core/src/main/java/org/openjdk/jmh/runner/BaseRunner.java	Tue Aug 27 20:29:51 2013 +0400
@@ -51,7 +51,7 @@
 public abstract class BaseRunner {
 
     /** Class holding all our runtime options/arguments */
-    private final Options options;
+    protected final Options options;
 
     protected final OutputFormat out;
 
--- a/jmh-core/src/main/java/org/openjdk/jmh/runner/ForkedRunner.java	Tue Aug 27 18:53:26 2013 +0400
+++ b/jmh-core/src/main/java/org/openjdk/jmh/runner/ForkedRunner.java	Tue Aug 27 20:29:51 2013 +0400
@@ -35,11 +35,8 @@
  */
 public class ForkedRunner extends BaseRunner {
 
-    private final Options options;
-
     public ForkedRunner(Options options, BinaryLinkClient link) {
         super(options, OutputFormatFactory.createBinaryHook(link));
-        this.options = options;
     }
 
     public void run(BenchmarkRecord benchmark) {
--- a/jmh-core/src/main/java/org/openjdk/jmh/runner/Runner.java	Tue Aug 27 18:53:26 2013 +0400
+++ b/jmh-core/src/main/java/org/openjdk/jmh/runner/Runner.java	Tue Aug 27 20:29:51 2013 +0400
@@ -65,15 +65,11 @@
  */
 public class Runner extends BaseRunner {
 
-    /** Class holding all our runtime options/arguments */
-    private final Options options;
-
     private final MicroBenchmarkList list;
 
     public Runner(Options options) {
         super(options, createOutputFormat(options));
         this.list = MicroBenchmarkList.defaultList();
-        this.options = options;
     }
 
     /** Setup helper method, creates OutputFormat according to argv options. */