changeset 1065:de75b9914a57

Amend 7901219: Clean up raw types in harness and generated classes Contributed-by: Staffan Friberg <staffan.friberg@oracle.com>
author shade
date Fri, 19 Dec 2014 01:36:45 +0300
parents 9686a533ffe6
children 3ed73e6b009c
files jmh-core/src/main/java/org/openjdk/jmh/generators/core/StateObjectHandler.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/jmh-core/src/main/java/org/openjdk/jmh/generators/core/StateObjectHandler.java	Thu Dec 18 22:53:10 2014 +0300
+++ b/jmh-core/src/main/java/org/openjdk/jmh/generators/core/StateObjectHandler.java	Fri Dec 19 01:36:45 2014 +0300
@@ -776,9 +776,9 @@
                 for (Level level : Level.values()) {
                     pw.println("    public volatile int setup" + level + "Mutex;");
                     pw.println("    public volatile int tear" + level + "Mutex;");
-                    pw.println("    public final static AtomicIntegerFieldUpdater setup" + level + "MutexUpdater = " +
+                    pw.println("    public final static AtomicIntegerFieldUpdater<" + so.type + "_B2> setup" + level + "MutexUpdater = " +
                             "AtomicIntegerFieldUpdater.newUpdater(" + so.type + "_B2.class, \"setup" + level + "Mutex\");");
-                    pw.println("    public final static AtomicIntegerFieldUpdater tear" + level + "MutexUpdater = " +
+                    pw.println("    public final static AtomicIntegerFieldUpdater<" + so.type + "_B2> tear" + level + "MutexUpdater = " +
                             "AtomicIntegerFieldUpdater.newUpdater(" + so.type + "_B2.class, \"tear" + level + "Mutex\");");
                     pw.println("");
                 }