6241286: (cal) API: Calendar.DAY_OF_WEEK definition is wrong

Reviewed-by: naoto
This commit is contained in:
Justin Lu 2023-04-10 21:47:16 +00:00 committed by Naoto Sato
parent 42965d390c
commit 2aeb0e5267

View file

@ -459,9 +459,11 @@ public abstract class Calendar implements Serializable, Cloneable, Comparable<Ca
/**
* Field number for {@code get} and {@code set} indicating the day
* of the week. This field takes values {@code SUNDAY},
* {@code MONDAY}, {@code TUESDAY}, {@code WEDNESDAY},
* {@code THURSDAY}, {@code FRIDAY}, and {@code SATURDAY}.
* of the week. If the calendar is non-lenient, this field takes values
* {@code SUNDAY}, {@code MONDAY}, {@code TUESDAY}, {@code WEDNESDAY},
* {@code THURSDAY}, {@code FRIDAY}, and {@code SATURDAY}. Otherwise, any
* int values are accepted and normalized to one of the previously
* mentioned values.
*
* @see #SUNDAY
* @see #MONDAY