You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2019/06/02 20:53:36 UTC
[commons-rng] branch master updated: Renamed methods for JMH to
avoid failed build on JDK 9
This is an automated email from the ASF dual-hosted git repository.
aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-rng.git
The following commit(s) were added to refs/heads/master by this push:
new 1c6f359 Renamed methods for JMH to avoid failed build on JDK 9
1c6f359 is described below
commit 1c6f35948812ca658bc6ebb51252f776200b3d3b
Author: Alex Herbert <ah...@apache.org>
AuthorDate: Sun Jun 2 21:53:32 2019 +0100
Renamed methods for JMH to avoid failed build on JDK 9
---
.../org/apache/commons/rng/examples/jmh/ConstructionPerformance.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/commons-rng-examples/examples-jmh/src/main/java/org/apache/commons/rng/examples/jmh/ConstructionPerformance.java b/commons-rng-examples/examples-jmh/src/main/java/org/apache/commons/rng/examples/jmh/ConstructionPerformance.java
index 03b2973..9a75fa6 100644
--- a/commons-rng-examples/examples-jmh/src/main/java/org/apache/commons/rng/examples/jmh/ConstructionPerformance.java
+++ b/commons-rng-examples/examples-jmh/src/main/java/org/apache/commons/rng/examples/jmh/ConstructionPerformance.java
@@ -915,7 +915,7 @@ public class ConstructionPerformance {
* @param bh Data sink.
*/
@Benchmark
- public void createIntegerSeed(Blackhole bh) {
+ public void createSingleIntegerSeed(Blackhole bh) {
for (int i = 0; i < SEEDS; i++) {
// This has to be boxed to an object
bh.consume(Integer.valueOf(SeedFactory.createInt()));
@@ -926,7 +926,7 @@ public class ConstructionPerformance {
* @param bh Data sink.
*/
@Benchmark
- public void createLongSeed(Blackhole bh) {
+ public void createSingleLongSeed(Blackhole bh) {
for (int i = 0; i < SEEDS; i++) {
// This has to be boxed to an object
bh.consume(Long.valueOf(SeedFactory.createLong()));