<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    Hi Rafael,<br>
    <br>
    You might have missed the update added by <a class="issue-link" data-issue-key="JDK-8231640" href="https://bugs.openjdk.org/browse/JDK-8231640" id="key-val" rel="5001130">JDK-8231640</a> Canonical property storage<br>
    The comment string can be provided either by a separate method 
    `store(Writer, String)` or by a system property.<br>
    <br>
    Regards, Roger<br>
    <br>
    <div class="moz-cite-prefix">On 11/25/24 4:53 PM, Rafael
      Winterhalter wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:CA+DM0Amj+Q9icpMcJ-iPkf-a1thxp2S80FLHZG=Rb7Cow8puSg@mail.gmail.com">
      
      <div dir="ltr">
        <div>Hello,</div>
        <div><br>
        </div>
        <div>I find the java.util.Properties class to be quite
          convenient when writing minor collections of key-values. One
          unfortunate implication of the store method is that it always
          contains a comment line with the current date. The comment is
          never deserialized when loading the file, but the file hash is
          of course always changed, even if the content is identical at
          a later time. This can have unfortunate implications when the
          file hash is relevant to some form of cashing or validation
          mechanism.</div>
        <div><br>
        </div>
        <div>Would it be a good idea to add an overload that allows
          disabling the date comment? This would only require minimal
          code changes and the storage format would become reproducible.
          The key-values are already sorted by their key. The date can
          be fixed by a system property, but this is not always possible
          to define if the writer is not in control of the command line.
          Right now I have to reimplement the Properties::store method
          only to exclude this line.<br>
        </div>
        <div><br>
        </div>
        <div>Thanks for your consideration and opinion,</div>
        <div>Rafael<br>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>