[PATCH] 8069128: remove deprecation warning suppression from KeychainStore
Adam Petcher
adam.petcher at oracle.com
Fri Dec 9 15:53:31 UTC 2016
KeychainStore has a couple of @SuppressWarnings("deprecation")
annotations that were required due to references to an overloaded equals
method in ObjectIdentifier that was marked as deprecated. This method
has since been removed, so these calls now resolve to a non-deprecated
method.
Bug: https://bugs.openjdk.java.net/browse/JDK-8069128
Diff:
diff --git
a/src/java.base/macosx/classes/apple/security/KeychainStore.java
b/src/java.base/macosx/classes/apple/security/KeychainStore.java
--- a/src/java.base/macosx/classes/apple/security/KeychainStore.java
+++ b/src/java.base/macosx/classes/apple/security/KeychainStore.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights
reserved.
+ * Copyright (c) 2011, 2016, 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
@@ -911,7 +911,6 @@
return true;
}
- @SuppressWarnings("deprecation")
private byte[] fetchPrivateKeyFromBag(byte[] privateKeyInfo)
throws IOException, NoSuchAlgorithmException, CertificateException
{
byte[] returnValue = null;
@@ -972,7 +971,6 @@
return returnValue;
}
- @SuppressWarnings("deprecation")
private byte[] extractKeyData(DerInputStream stream)
throws IOException, NoSuchAlgorithmException, CertificateException
{
More information about the security-dev
mailing list