8261880: Change nested classes in java.base to static nested classes where possible

Reviewed-by: redestad
This commit is contained in:
Sergey Tsypanov 2021-05-20 13:56:11 +00:00 committed by Claes Redestad
parent 459abd561a
commit 9425d3de83
11 changed files with 15 additions and 15 deletions

View file

@ -53,7 +53,7 @@ public final class KeychainStore extends KeyStoreSpi {
// If a key came from the keychain it has a SecKeyRef and one or more
// SecCertificateRef. When we delete the key we have to delete all of the corresponding
// native objects.
class KeyEntry {
static class KeyEntry {
Date date; // the creation date of this entry
byte[] protectedPrivKey;
char[] password;
@ -63,7 +63,7 @@ public final class KeychainStore extends KeyStoreSpi {
};
// Trusted certificates
class TrustedCertEntry {
static class TrustedCertEntry {
Date date; // the creation date of this entry
Certificate cert;
@ -883,7 +883,7 @@ public final class KeychainStore extends KeyStoreSpi {
entries.put(alias.toLowerCase(), ke);
}
private class CertKeychainItemPair {
private static class CertKeychainItemPair {
long mCertificateRef;
Certificate mCert;