1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-12-23 03:17:58 +01:00

Fix checkstyle issues

This commit is contained in:
Paul Schaub 2022-05-07 21:44:52 +02:00
parent 374e6452f0
commit d3f412873b
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -449,9 +449,9 @@ public final class KeyRingUtils {
*/
@Nonnull
public static PGPSecretKeyRing stripSecretKey(@Nonnull PGPSecretKeyRing secretKeys,
long secretKeyId)
long secretKeyId)
throws IOException, PGPException {
if (secretKeys.getPublicKey().getKeyID() == secretKeyId) {
throw new IllegalArgumentException("Bouncy Castle currently cannot deal with stripped secret primary keys.");
}