Formatter of LocalDateTimeStringConverter

Nir Lisker nlisker at gmail.com
Fri Aug 6 18:21:20 UTC 2021


I'm looking at [1]. The logic to create the formatter seems fishy. First, a
formatter is created. Then, if dateStyle is null, it tries to create a new
formatter that has its year digits fixed.  However, this ignores the
created formatter. Is this correct behavior and it's just the flow control
that is off?

[1]
https://github.com/openjdk/jfx/blob/ba61a17307d48d373fd8faa169ed16821e81c0fd/modules/javafx.base/src/main/java/javafx/util/converter/LocalDateTimeStringConverter.java#L261


More information about the openjfx-dev mailing list