Skip to content
Permalink
Browse files
8274793: Suppress warnings on non-serializable non-transient instance…
… fields in sun.net

Reviewed-by: alanb
  • Loading branch information
jddarcy committed Oct 5, 2021
1 parent 332f067 commit d34ec6ccfc27d9401acce0e03595b910764fbfaf
Showing 2 changed files with 3 additions and 0 deletions.
@@ -79,6 +79,7 @@ static int getMaxConnections() {

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

/**
@@ -119,8 +119,10 @@ public String run() {
});
};

@SuppressWarnings("serial") // Type of field is not Serializable
PasswordAuthentication pw;

@SuppressWarnings("serial") // Type of field is not Serializable
Client client;
/**
* Create a NTLMAuthentication:

1 comment on commit d34ec6c

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on d34ec6c Oct 5, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.