From d3f412873bd0b8db6e5a5fadf4eab41270082710 Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Sat, 7 May 2022 21:44:52 +0200 Subject: [PATCH] Fix checkstyle issues --- .../src/main/java/org/pgpainless/key/util/KeyRingUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pgpainless-core/src/main/java/org/pgpainless/key/util/KeyRingUtils.java b/pgpainless-core/src/main/java/org/pgpainless/key/util/KeyRingUtils.java index dd366e46..8306db34 100644 --- a/pgpainless-core/src/main/java/org/pgpainless/key/util/KeyRingUtils.java +++ b/pgpainless-core/src/main/java/org/pgpainless/key/util/KeyRingUtils.java @@ -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."); }