mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 03:58:21 +00:00
patter matching comment
This commit is contained in:
parent
befe99896f
commit
8a5341abe8
@ -429,8 +429,8 @@ abstract sealed class KeychainStore extends KeyStoreSpi {
|
||||
final Object entry = entries.get(alias.toLowerCase(Locale.ROOT));
|
||||
|
||||
if (entry != null) {
|
||||
if (entry instanceof TrustedCertEntry) {
|
||||
return ((TrustedCertEntry)entry).date;
|
||||
if (entry instanceof TrustedCertEntry trustedCertEntry) {
|
||||
return trustedCertEntry.date;
|
||||
} else {
|
||||
return ((KeyEntry)entry).date;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user