8274393: Suppress more warnings on non-serializable non-transient instance fields in security libs

Reviewed-by: weijun
This commit is contained in:
Joe Darcy 2021-09-30 17:39:05 +00:00
parent 8215b2eb61
commit 7326481143
12 changed files with 41 additions and 3 deletions

View file

@ -64,6 +64,8 @@ final class PBKDF2KeyImpl implements javax.crypto.interfaces.PBEKey {
private int iterCount;
private byte[] key;
@SuppressWarnings("serial") // Type of field is not Serializable;
// see writeReplace method
private Mac prf;
private static byte[] getPasswordBytes(char[] passwd) {