On Thu, 3 Sep 2026 20:44:37 GMT, Sean Mullan <[email protected]> wrote:

>> src/java.base/share/classes/sun/security/tools/keytool/CertAndKeyGen.java 
>> line 154:
>> 
>>> 152:             try {
>>> 153:                 
>>> keyGen.initialize(keyType.toUpperCase(Locale.ROOT).equals("EC")
>>> 154:                         ? new ECGenParameterSpec(name)
>> 
>> `ECGenParameterSpec` is also used in the catch below, so it seems the code 
>> is duplicated.
>
> Yes, that code can be deleted now.

Oh, I didn't notice the code 2 lines below. I'll remove the try/catch 
surrounding.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/32616#discussion_r3974187818

Reply via email to