8343467: Remove unnecessary @SuppressWarnings annotations (security)

Reviewed-by: mullan
This commit is contained in:
Archie Cobbs 2024-12-13 22:40:42 +00:00
parent e7fc0eb522
commit 4b21fb9df9
23 changed files with 13 additions and 36 deletions

View file

@ -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;

View file

@ -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) {