RFR: 8297519: Improve expressions and modernise code

Per Minborg pminborg at openjdk.org
Thu Nov 24 08:32:33 UTC 2022


On Thu, 24 Nov 2022 08:24:37 GMT, Per Minborg <pminborg at openjdk.org> wrote:

> During the work of another PR (https://github.com/openjdk/jdk/pull/11260), several improvement areas were identified. These are now adressed in this separate PR proposing the use of more modern Java constructs as well as simplifying a large number of logical expressions that were previously non-normative. 
> 
> 
> This branch has been tested and passed tier1-4 tests.

src/jdk.crypto.cryptoki/share/classes/sun/security/pkcs11/P11AEADCipher.java line 313:

> 311:             AlgorithmParameterSpec paramSpec = null;
> 312:             if (params != null) {
> 313:                 paramSpec = switch (type) {

This switch is exhaustive.

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

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



More information about the security-dev mailing list