mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-04 20:18:49 +00:00
style changes
This commit is contained in:
parent
8a5341abe8
commit
0db23009ca
@ -408,7 +408,7 @@ abstract sealed class KeychainStore extends KeyStoreSpi {
|
||||
*/
|
||||
public Date engineGetCreationDate(String alias) {
|
||||
final Instant instant = this.engineGetCreationInstant(alias);
|
||||
if (instant == null){
|
||||
if (instant == null) {
|
||||
return null;
|
||||
}
|
||||
return Date.from(instant);
|
||||
|
||||
@ -216,7 +216,7 @@ public final class JceKeyStore extends KeyStoreSpi {
|
||||
*/
|
||||
public Date engineGetCreationDate(String alias) {
|
||||
final Instant instant = this.engineGetCreationInstant(alias);
|
||||
if (instant == null){
|
||||
if (instant == null) {
|
||||
return null;
|
||||
}
|
||||
return Date.from(instant);
|
||||
|
||||
@ -544,7 +544,7 @@ public final class PKCS12KeyStore extends KeyStoreSpi {
|
||||
*/
|
||||
public Date engineGetCreationDate(String alias) {
|
||||
final Instant instant = this.engineGetCreationInstant(alias);
|
||||
if (instant == null){
|
||||
if (instant == null) {
|
||||
return null;
|
||||
}
|
||||
return Date.from(instant);
|
||||
@ -2438,7 +2438,8 @@ public final class PKCS12KeyStore extends KeyStoreSpi {
|
||||
if (keyIdStr.startsWith("Time ")) {
|
||||
try {
|
||||
instant = Instant.ofEpochMilli(
|
||||
Long.parseLong(keyIdStr.substring(5)));
|
||||
Long.parseLong(keyIdStr.substring(5))
|
||||
);
|
||||
} catch (Exception e) {
|
||||
// instant has been initialized to null
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user