Re: RFR: 4737887: (cal) API: Calendar methods taking field should document exceptions [v2]

2023-04-14 Thread Justin Lu
> Many Calendar methods that take in a field parameter should document that > they throw an ArrayIndexOutOfBoundsException if field is not between 0 and > `Calendar.FIELD_COUNT`. > > This PR adds a clause to the class description to make the above apparent. > > `Calendar.Roll(int, int)`, `Calen

Re: RFR: 4737887: (cal) API: Calendar methods taking field should document exceptions

2023-04-14 Thread Naoto Sato
On Wed, 29 Mar 2023 22:04:08 GMT, Justin Lu wrote: > Many Calendar methods that take in a field parameter should document that > they throw an ArrayIndexOutOfBoundsException if field is not between 0 and > `Calendar.FIELD_COUNT`. > > This PR adds a clause to the class description to make the a

RFR: 4737887: (cal) API: Calendar methods taking field should document exceptions

2023-04-14 Thread Justin Lu
Many Calendar methods that take in a field parameter should document that they throw an ArrayIndexOutOfBoundsException if field is not between 0 and `Calendar.FIELD_COUNT`. This PR adds a clause to the class description to make the above apparent. `Calendar.Roll(int, int)`, `Calendar.roll(int,