mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-30 00:02:06 +01:00
Simplify setPolicyUrl implementation
This commit is contained in:
parent
d4c56f655f
commit
7710845454
2 changed files with 3 additions and 3 deletions
|
@ -90,7 +90,7 @@ public interface BaseSignatureSubpackets {
|
|||
|
||||
BaseSignatureSubpackets setExportable(@Nullable Exportable exportable);
|
||||
|
||||
BaseSignatureSubpackets setPolicyUrl(@Nullable URL policyUrl);
|
||||
BaseSignatureSubpackets setPolicyUrl(@Nonnull URL policyUrl);
|
||||
|
||||
BaseSignatureSubpackets setPolicyUrl(boolean isCritical, @Nonnull URL policyUrl);
|
||||
|
||||
|
|
|
@ -489,8 +489,8 @@ public class SignatureSubpackets
|
|||
}
|
||||
|
||||
@Override
|
||||
public BaseSignatureSubpackets setPolicyUrl(@Nullable URL policyUrl) {
|
||||
return policyUrl == null ? setPolicyUrl((PolicyURI) null) : setPolicyUrl(false, policyUrl);
|
||||
public BaseSignatureSubpackets setPolicyUrl(@Nonnull URL policyUrl) {
|
||||
return setPolicyUrl(false, policyUrl);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue