Minor fix to JMHSample_24_Inheritance.java

Ismael Juma mlists at juma.me.uk
Sun Sep 14 14:30:48 UTC 2014


Hi all,

I include a one-liner fix to what looks like a bug
in JMHSample_24_Inheritance.java at the end of this email. Hope it helps.

Best,
Ismael

diff -r 712b5ce908ca
jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_24_Inheritance.java
---
a/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_24_Inheritance.jav
Fri
Sep 12 12:39:52 2014 +0400
+++
b/jmh-samples/src/main/java/org/openjdk/jmh/samples/JMHSample_24_Inheritance.jav
Sun
Sep 14 15:23:31 2014 +0100
@@ -95,7 +95,7 @@
     public static class BenchmarkCos extends AbstractBenchmark {
         @Override
         protected double doWork() {
-            return Math.sin(x);
+            return Math.cos(x);
         }
     }


More information about the jmh-dev mailing list