8307144: namedParams in XECParameters and EdDSAParameters can be private final

Reviewed-by: jnimeh, xuelei, mullan
This commit is contained in:
Ben Perez 2023-06-12 19:45:06 +00:00 committed by Sean Mullan
parent 3ce1240ca1
commit 3c15ad8d47
2 changed files with 6 additions and 4 deletions

View File

@ -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<XECParameters> namedParams = new ParametersMap<>();
private static final ParametersMap<XECParameters> namedParams =
new ParametersMap<>();
// Naming/identification parameters
private final ObjectIdentifier oid;

View File

@ -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<EdDSAParameters> namedParams = new ParametersMap<>();
private static final ParametersMap<EdDSAParameters> namedParams =
new ParametersMap<>();
private final String name;
private final ObjectIdentifier oid;