src/share/classes/java/util/JapaneseImperialCalendar.java

Print this page

        

*** 1930,1940 **** /** * Computes the fixed date under either the Gregorian or the * Julian calendar, using the given year and the specified calendar fields. * ! * @param cal the CalendarSystem to be used for the date calculation * @param year the normalized year number, with 0 indicating the * year 1 BCE, -1 indicating 2 BCE, etc. * @param fieldMask the calendar fields to be used for the date calculation * @return the fixed date * @see Calendar#selectFields --- 1930,1940 ---- /** * Computes the fixed date under either the Gregorian or the * Julian calendar, using the given year and the specified calendar fields. * ! * @param era era index * @param year the normalized year number, with 0 indicating the * year 1 BCE, -1 indicating 2 BCE, etc. * @param fieldMask the calendar fields to be used for the date calculation * @return the fixed date * @see Calendar#selectFields
*** 2139,2149 **** /** * Returns the length of the specified month in the specified * Gregorian year. The year number must be normalized. * ! * @see #isLeapYear(int) */ private int monthLength(int month, int gregorianYear) { return CalendarUtils.isGregorianLeapYear(gregorianYear) ? GregorianCalendar.LEAP_MONTH_LENGTH[month] : GregorianCalendar.MONTH_LENGTH[month]; } --- 2139,2149 ---- /** * Returns the length of the specified month in the specified * Gregorian year. The year number must be normalized. * ! * @see GregorianCalendar#isLeapYear(int) */ private int monthLength(int month, int gregorianYear) { return CalendarUtils.isGregorianLeapYear(gregorianYear) ? GregorianCalendar.LEAP_MONTH_LENGTH[month] : GregorianCalendar.MONTH_LENGTH[month]; }
*** 2150,2160 **** /** * Returns the length of the specified month in the year provided * by internalGet(YEAR). * ! * @see #isLeapYear(int) */ private int monthLength(int month) { assert jdate.isNormalized(); return jdate.isLeapYear() ? GregorianCalendar.LEAP_MONTH_LENGTH[month] : GregorianCalendar.MONTH_LENGTH[month]; --- 2150,2160 ---- /** * Returns the length of the specified month in the year provided * by internalGet(YEAR). * ! * @see GregorianCalendar#isLeapYear(int) */ private int monthLength(int month) { assert jdate.isNormalized(); return jdate.isLeapYear() ? GregorianCalendar.LEAP_MONTH_LENGTH[month] : GregorianCalendar.MONTH_LENGTH[month];