8302696: Revert API signature changes made in JDK-8285504 and JDK-8285263

Reviewed-by: mullan
(cherry picked from commit 9486969bd3)
This commit is contained in:
Mark Powers
2023-04-11 14:42:44 +00:00
committed by Vitaly Provodin
parent 8c0a9351ab
commit 9c1ee8f69a
3 changed files with 3 additions and 3 deletions

View File

@@ -427,7 +427,7 @@ public class CertStore {
* {@literal "LDAP"} if no such property exists.
*/
@SuppressWarnings("removal")
public static String getDefaultType() {
public static final String getDefaultType() {
String cstype;
cstype = AccessController.doPrivileged((PrivilegedAction<String>) () ->
Security.getProperty(CERTSTORE_TYPE));

View File

@@ -63,7 +63,7 @@ public class KeyManagerFactory {
* implementation-specific default if no such property exists.
*/
@SuppressWarnings("removal")
public static String getDefaultAlgorithm() {
public static final String getDefaultAlgorithm() {
String type;
type = AccessController.doPrivileged((PrivilegedAction<String>) () ->
Security.getProperty("ssl.KeyManagerFactory.algorithm"));

View File

@@ -75,7 +75,7 @@ public class TrustManagerFactory {
* implementation-specific default if no such property exists.
*/
@SuppressWarnings("removal")
public static String getDefaultAlgorithm() {
public static final String getDefaultAlgorithm() {
String type;
type = AccessController.doPrivileged((PrivilegedAction<String>) () ->
Security.getProperty( "ssl.TrustManagerFactory.algorithm"));