On Tue, 6 Dec 2022 16:50:47 GMT, Doug Simon <dnsi...@openjdk.org> wrote:
>> This parameter exists to allow a caller to pass in a `Properties` object >> that is guaranteed to have only String keys and so does not need the extra >> filtering done in this method. I'll refactor the code to make it clearer. > > Hopefully this makes it clearer: > https://github.com/openjdk/jdk/pull/11513/commits/5c610798fe4eaed7efeb2eebcf1e5db47714caee Thanks. I initially assumed it was done to support non-String key/values but it's actually an optimization because the save properties are always Strings. ------------- PR: https://git.openjdk.org/jdk/pull/11513