8307144: namedParams in XECParameters and EdDSAParameters can be private final
Reviewed-by: jnimeh, xuelei, mullan
This commit is contained in:
parent
3ce1240ca1
commit
3c15ad8d47
@ -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.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* 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 X25519;
|
||||||
static final XECParameters X448;
|
static final XECParameters X448;
|
||||||
|
|
||||||
static ParametersMap<XECParameters> namedParams = new ParametersMap<>();
|
private static final ParametersMap<XECParameters> namedParams =
|
||||||
|
new ParametersMap<>();
|
||||||
|
|
||||||
// Naming/identification parameters
|
// Naming/identification parameters
|
||||||
private final ObjectIdentifier oid;
|
private final ObjectIdentifier oid;
|
||||||
|
@ -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.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* 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 String name;
|
||||||
private final ObjectIdentifier oid;
|
private final ObjectIdentifier oid;
|
||||||
|
Loading…
Reference in New Issue
Block a user