I propose to make j.t.f.DateTimePrintContext immutable.
Currently, DateTimePrintContext has only one mutable field, optional. This can be replaced by adding an optional parameter to the DateTimeFormatter.formatTo method.
Immutable DateTimePrintContext can be optimized by escape analysis, such as immutable object optimization.
Currently, DateTimePrintContext has only one mutable field, optional. This can be replaced by adding an optional parameter to the DateTimeFormatter.formatTo method.
Immutable DateTimePrintContext can be optimized by escape analysis, such as immutable object optimization.
- links to
-
Review(master) openjdk/jdk/26913