mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 12:09:14 +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));
|
final Object entry = entries.get(alias.toLowerCase(Locale.ROOT));
|
||||||
|
|
||||||
if (entry != null) {
|
if (entry != null) {
|
||||||
if (entry instanceof TrustedCertEntry) {
|
if (entry instanceof TrustedCertEntry trustedCertEntry) {
|
||||||
return ((TrustedCertEntry)entry).date;
|
return trustedCertEntry.date;
|
||||||
} else {
|
} else {
|
||||||
return ((KeyEntry)entry).date;
|
return ((KeyEntry)entry).date;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user