8274793: Suppress warnings on non-serializable non-transient instance fields in sun.net

Reviewed-by: alanb
This commit is contained in:
Joe Darcy 2021-10-05 19:10:29 +00:00
parent 332f067388
commit d34ec6ccfc
2 changed files with 3 additions and 0 deletions

View file

@ -79,6 +79,7 @@ public class KeepAliveCache
// This class is never serialized (see writeObject/readObject).
private final ReentrantLock cacheLock = new ReentrantLock();
@SuppressWarnings("serial") // Type of field is not Serializable
private Thread keepAliveTimer = null;
/**