On Tue, 29 Nov 2022 16:12:11 GMT, Weijun Wang <wei...@openjdk.org> wrote:

>> Per Minborg has updated the pull request incrementally with one additional 
>> commit since the last revision:
>> 
>>   Update from the first round of comments
>
> src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/P11AEADCipher.java 
> line 375:
> 
>> 373:                     tagLen = type.defTagLen;
>> 374:                 }
>> 375:                 default -> throw new AssertionError("Unsupported type " 
>> + type);
> 
> `default` is unnecessary.

This would enable total removal of the switch statement.

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

PR: https://git.openjdk.org/jdk/pull/11348

Reply via email to