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

Simplify setPolicyUrl implementation

This commit is contained in:
Paul Schaub 2022-04-07 20:46:21 +02:00
parent d4c56f655f
commit 7710845454
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
2 changed files with 3 additions and 3 deletions

View file

@ -90,7 +90,7 @@ public interface BaseSignatureSubpackets {
BaseSignatureSubpackets setExportable(@Nullable Exportable exportable); BaseSignatureSubpackets setExportable(@Nullable Exportable exportable);
BaseSignatureSubpackets setPolicyUrl(@Nullable URL policyUrl); BaseSignatureSubpackets setPolicyUrl(@Nonnull URL policyUrl);
BaseSignatureSubpackets setPolicyUrl(boolean isCritical, @Nonnull URL policyUrl); BaseSignatureSubpackets setPolicyUrl(boolean isCritical, @Nonnull URL policyUrl);

View file

@ -489,8 +489,8 @@ public class SignatureSubpackets
} }
@Override @Override
public BaseSignatureSubpackets setPolicyUrl(@Nullable URL policyUrl) { public BaseSignatureSubpackets setPolicyUrl(@Nonnull URL policyUrl) {
return policyUrl == null ? setPolicyUrl((PolicyURI) null) : setPolicyUrl(false, policyUrl); return setPolicyUrl(false, policyUrl);
} }
@Override @Override