< prev index next >

test/hotspot/jtreg/runtime/valhalla/valuetypes/IntValue.java

Print this page

        

@@ -21,20 +21,11 @@
  * questions.
  */
 
 package runtime.valhalla.valuetypes;
 
-public final inline class IntValue {
-    final int val;
-
-    IntValue() {
-        val = 0;
-    }
-
+public inline class IntValue {
+    int val;
+    public IntValue()       { this(0); }
+    public IntValue(int v)  { val = v; }
     public int getInt() { return val; }
-
-    public static IntValue create(int val) {
-        IntValue iv = IntValue.default;
-        iv = val;
-        return iv;
-    }
 }
< prev index next >