mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-04 19:45:59 +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 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);
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue