<div class="__aliyun_email_body_block"><div  style="font-family: Tahoma, Arial, STHeitiSC-Light, SimSun"><div  style="clear: both;"><span ><span >I propose to make j.t.f.DateTimePrintContext immutable.</span></span></div><div  style="clear: both;"><br ><div  style="clear: both;">Currently, DateTimePrintContext has only one mutable field, optional. This can be replaced by adding an optional parameter to the DateTimeFormatter.formatTo method.</div><span ><div  style="clear: both;"><br ></div>Immutable DateTimePrintContext can be optimized by escape analysis, such as immutable object optimization.</span></div><div  style="clear: both;"><span ><br ></span></div><div  style="clear: both;"><span ><span ><span >In order to make it easier for reviewers to see my ideas, I submitted a draft Pull Request ( <span ><a  href="https://github.com/openjdk/jdk/pull/26913" target="_blank">https://github.com/openjdk/jdk/pull/26913</a> )</span>. Please give me feedback.</span></span></span></div></div></div>