RFR: 8374808: Add an Instance in place of Date for KeyStore and KeyStoreSpi [v2]

Weijun Wang weijun at openjdk.org
Wed Jan 14 21:16:31 UTC 2026


On Wed, 14 Jan 2026 20:48:52 GMT, Weijun Wang <weijun at openjdk.org> wrote:

>> Mikhail Yankelevich has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   DKS tests enhanced
>
> src/java.base/share/classes/java/security/KeyStore.java line 1187:
> 
>> 1185:      * Returns the creation date of the entry identified by the given alias.
>> 1186:      * <p>
>> 1187:      * This method returns a Date, which is mutable and more error-prone.
> 
> Put `Date` in `{@code}`.

I'm a little unsure of the "more" word. When you say more, it sounds like you are comparing it to something else. Since we haven't spelled out the other thing, maybe we can remove this word.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/29140#discussion_r2692006297


More information about the security-dev mailing list