patter matching comment

This commit is contained in:
Mikhail Yankelevich 2026-01-22 13:09:51 +00:00
parent befe99896f
commit 8a5341abe8

View File

@ -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;
}