mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8343467: Remove unnecessary @SuppressWarnings annotations (security)
Reviewed-by: mullan
This commit is contained in:
parent
e7fc0eb522
commit
4b21fb9df9
23 changed files with 13 additions and 36 deletions
|
@ -206,7 +206,6 @@ abstract class PBES2Parameters extends AlgorithmParametersSpi {
|
|||
this.cipherParam = ((PBEParameterSpec)paramSpec).getParameterSpec();
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
protected void engineInit(byte[] encoded)
|
||||
throws IOException
|
||||
{
|
||||
|
@ -239,7 +238,6 @@ abstract class PBES2Parameters extends AlgorithmParametersSpi {
|
|||
this.pbes2AlgorithmName = "PBEWith" + kdfAlgo + "And" + cipherAlgo;
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
private String parseKDF(DerValue keyDerivationFunc) throws IOException {
|
||||
|
||||
if (!pkcs5PBKDF2_OID.equals(keyDerivationFunc.data.getOID())) {
|
||||
|
@ -299,7 +297,6 @@ abstract class PBES2Parameters extends AlgorithmParametersSpi {
|
|||
return kdfAlgo;
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
private String parseES(DerValue encryptionScheme) throws IOException {
|
||||
String cipherAlgo;
|
||||
|
||||
|
|
|
@ -81,7 +81,6 @@ final class SealedObjectForKeyProtector extends SealedObject {
|
|||
.getExtObjectInputStream(this, c)) {
|
||||
ois.setObjectInputFilter(new DeserializationChecker(maxLength));
|
||||
try {
|
||||
@SuppressWarnings("unchecked")
|
||||
Key t = (Key) ois.readObject();
|
||||
return t;
|
||||
} catch (InvalidClassException ice) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue