< prev index next >

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

Print this page

        

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