1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-26 06:12:06 +01:00

Make getLastModified() @Nonnull

This commit is contained in:
Paul Schaub 2023-02-25 11:26:58 +01:00
parent a25ea542d6
commit ed2c53f5d6
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -611,7 +611,7 @@ public class KeyRingInfo {
* *
* @return last modification date. * @return last modification date.
*/ */
public @Nullable Date getLastModified() { public @Nonnull Date getLastModified() {
PGPSignature mostRecent = getMostRecentSignature(); PGPSignature mostRecent = getMostRecentSignature();
if (mostRecent == null) { if (mostRecent == null) {
// No sigs found. Return public key creation date instead. // No sigs found. Return public key creation date instead.