On Wed, 15 Jul 2026 09:21:36 GMT, Volkan Yazici <[email protected]> wrote:
> Improve `SimpleDateFormat::{get,set}2DigitYearStart()` documentation.
>
> ---------
> - [X] I confirm that I make this contribution in accordance with the [OpenJDK
> Interim AI Policy](https://openjdk.org/legal/ai).
src/java.base/share/classes/java/text/SimpleDateFormat.java line 925:
> 923: * Sets the start date of the 100-year period used to interpret
> 2-digit years.
> 924: * <p>
> 925: * For example, if the start date is set to January 1, 1950, 2-digit
> years
I overlooked this during our internal discussion that this example is specific
to `GregorianCalendar`, so something like:
* For example, for a {@code SimpleDateFormat} with a {@code GregorianCalendar},
* if the start date is set to January 1, 1950, ...
would be more appropriate.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/31909#discussion_r3589063502