diff --git a/pgpainless-core/src/main/java/org/pgpainless/key/generation/KeySpecBuilder.java b/pgpainless-core/src/main/java/org/pgpainless/key/generation/KeySpecBuilder.java index 38e82e4e..bbc7f14a 100644 --- a/pgpainless-core/src/main/java/org/pgpainless/key/generation/KeySpecBuilder.java +++ b/pgpainless-core/src/main/java/org/pgpainless/key/generation/KeySpecBuilder.java @@ -77,10 +77,7 @@ public class KeySpecBuilder implements KeySpecBuilderInterface { this.hashedSubPackets.setPreferredSymmetricAlgorithms(false, getPreferredSymmetricKeyAlgorithmIDs()); this.hashedSubPackets.setFeature(false, Feature.MODIFICATION_DETECTION.getFeatureId()); - return new KeySpec( - KeySpecBuilder.this.type, - hashedSubPackets, - false); + return new KeySpec(type, hashedSubPackets, false); } private int[] getPreferredCompressionAlgorithmIDs() {