mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-26 22:32:07 +01:00
Make fields final where possible
This commit is contained in:
parent
fc5be684a4
commit
4e7c1c023c
2 changed files with 4 additions and 4 deletions
|
@ -59,9 +59,9 @@ public class KeyRingBuilder implements KeyRingBuilderInterface {
|
|||
|
||||
private final Charset UTF8 = Charset.forName("UTF-8");
|
||||
|
||||
private List<KeySpec> keySpecs = new ArrayList<>();
|
||||
private final List<KeySpec> keySpecs = new ArrayList<>();
|
||||
private String userId;
|
||||
private Set<String> additionalUserIds = new LinkedHashSet<>();
|
||||
private final Set<String> additionalUserIds = new LinkedHashSet<>();
|
||||
private Passphrase passphrase;
|
||||
|
||||
public PGPSecretKeyRing simpleRsaKeyRing(@Nonnull UserId userId, @Nonnull RsaLength length)
|
||||
|
|
|
@ -29,8 +29,8 @@ import org.pgpainless.key.generation.type.KeyType;
|
|||
|
||||
public class KeySpecBuilder implements KeySpecBuilderInterface {
|
||||
|
||||
private KeyType type;
|
||||
private PGPSignatureSubpacketGenerator hashedSubPackets = new PGPSignatureSubpacketGenerator();
|
||||
private final KeyType type;
|
||||
private final PGPSignatureSubpacketGenerator hashedSubPackets = new PGPSignatureSubpacketGenerator();
|
||||
|
||||
KeySpecBuilder(@Nonnull KeyType type) {
|
||||
this.type = type;
|
||||
|
|
Loading…
Reference in a new issue