RFR: 8297519: Improve expressions and modernise code

Andrey Turbanov aturbanov at openjdk.org
Thu Nov 24 20:15:24 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/Secmod.java line 356:

> 354:     }
> 355: 
> 356:     static final String TEMPLATE_EXTERNAL =  """

Suggestion:

    static final String TEMPLATE_EXTERNAL = """

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

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



More information about the security-dev mailing list