diff --git a/src/jdk.crypto.ec/share/classes/sun/security/ec/XECParameters.java b/src/jdk.crypto.ec/share/classes/sun/security/ec/XECParameters.java index 86555321ec8..4879398378a 100644 --- a/src/jdk.crypto.ec/share/classes/sun/security/ec/XECParameters.java +++ b/src/jdk.crypto.ec/share/classes/sun/security/ec/XECParameters.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2018, 2023, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -42,7 +42,8 @@ public class XECParameters { static final XECParameters X25519; static final XECParameters X448; - static ParametersMap namedParams = new ParametersMap<>(); + private static final ParametersMap namedParams = + new ParametersMap<>(); // Naming/identification parameters private final ObjectIdentifier oid; diff --git a/src/jdk.crypto.ec/share/classes/sun/security/ec/ed/EdDSAParameters.java b/src/jdk.crypto.ec/share/classes/sun/security/ec/ed/EdDSAParameters.java index 8221b3a528e..6e06a890bbd 100644 --- a/src/jdk.crypto.ec/share/classes/sun/security/ec/ed/EdDSAParameters.java +++ b/src/jdk.crypto.ec/share/classes/sun/security/ec/ed/EdDSAParameters.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2020, 2023, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -147,7 +147,8 @@ public class EdDSAParameters { } } - static ParametersMap namedParams = new ParametersMap<>(); + private static final ParametersMap namedParams = + new ParametersMap<>(); private final String name; private final ObjectIdentifier oid;