RFR: 8297519: Improve expressions and modernise code [v2]
Per Minborg
pminborg at openjdk.org
Wed Nov 30 07:55:25 UTC 2022
On Tue, 29 Nov 2022 16:12:11 GMT, Weijun Wang <weijun at 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
More information about the security-dev
mailing list