< prev index next >

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

Print this page

        

*** 74,93 **** final int year; final short month; final short day; LocalDateValue() { ! this.year = 0; ! this.month = 0; ! this.day = 0; } public int getYear() { return year; } public short getMonth() { return month; } public short getDay() { return day; } ! __ValueFactory public static LocalDateValue create(int year, short month, short day) { LocalDateValue localDate = __MakeDefault LocalDateValue(); localDate.year = year; localDate.month = month; localDate.day = day; return localDate; --- 74,93 ---- final int year; final short month; final short day; LocalDateValue() { ! year = 0; ! month = 0; ! day = 0; } public int getYear() { return year; } public short getMonth() { return month; } public short getDay() { return day; } ! public static LocalDateValue create(int year, short month, short day) { LocalDateValue localDate = __MakeDefault LocalDateValue(); localDate.year = year; localDate.month = month; localDate.day = day; return localDate;
*** 99,120 **** final byte minute; final byte second; final int nano; LocalTimeValue() { ! this.hour = 0; ! this.minute = 0; ! this.second = 0; ! this.nano = 0; } public byte getHour() { return hour; } public byte getMinute() { return minute; } public byte getSecond() { return second; } public int getNano() { return nano; } ! __ValueFactory public static LocalTimeValue create(byte hour, byte minute, byte second, int nano) { LocalTimeValue localTime = __MakeDefault LocalTimeValue(); localTime.hour = hour; localTime.minute = minute; localTime.second = second; localTime.nano = nano; --- 99,120 ---- final byte minute; final byte second; final int nano; LocalTimeValue() { ! hour = 0; ! minute = 0; ! second = 0; ! nano = 0; } public byte getHour() { return hour; } public byte getMinute() { return minute; } public byte getSecond() { return second; } public int getNano() { return nano; } ! public static LocalTimeValue create(byte hour, byte minute, byte second, int nano) { LocalTimeValue localTime = __MakeDefault LocalTimeValue(); localTime.hour = hour; localTime.minute = minute; localTime.second = second; localTime.nano = nano;
*** 139,149 **** public byte getHour() { return time.hour; } public byte getMinute() { return time.minute; } public byte getSecond() { return time.second; } public int getNano() { return time.nano; } ! __ValueFactory public static LocalDateTimeValue create(LocalDateValue date, LocalTimeValue time) { LocalDateTimeValue localDateTime = __MakeDefault LocalDateTimeValue(); localDateTime.date = date; localDateTime.time = time; return localDateTime; } --- 139,149 ---- public byte getHour() { return time.hour; } public byte getMinute() { return time.minute; } public byte getSecond() { return time.second; } public int getNano() { return time.nano; } ! public static LocalDateTimeValue create(LocalDateValue date, LocalTimeValue time) { LocalDateTimeValue localDateTime = __MakeDefault LocalDateTimeValue(); localDateTime.date = date; localDateTime.time = time; return localDateTime; }
< prev index next >