mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-12-16 09:11:08 +01:00
Fix more code issues
This commit is contained in:
parent
e96d668ee2
commit
59f1a85887
7 changed files with 31 additions and 28 deletions
|
|
@ -16,7 +16,7 @@ import java.util.Set;
|
|||
*/
|
||||
public class AlgorithmSuite {
|
||||
|
||||
private static AlgorithmSuite defaultAlgorithmSuite = new AlgorithmSuite(
|
||||
private static final AlgorithmSuite defaultAlgorithmSuite = new AlgorithmSuite(
|
||||
Arrays.asList(
|
||||
SymmetricKeyAlgorithm.AES_256,
|
||||
SymmetricKeyAlgorithm.AES_192,
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ public class DecryptionBuilder implements DecryptionBuilderInterface {
|
|||
|
||||
class DecryptWithImpl implements DecryptWith {
|
||||
|
||||
private BufferedInputStream inputStream;
|
||||
private final BufferedInputStream inputStream;
|
||||
|
||||
DecryptWithImpl(InputStream inputStream) {
|
||||
this.inputStream = new BufferedInputStream(inputStream, BUFFER_SIZE);
|
||||
|
|
|
|||
|
|
@ -145,7 +145,7 @@ public final class EncryptionResult {
|
|||
private CompressionAlgorithm compressionAlgorithm;
|
||||
|
||||
private final MultiMap<SubkeyIdentifier, PGPSignature> detachedSignatures = new MultiMap<>();
|
||||
private Set<SubkeyIdentifier> recipients = new HashSet<>();
|
||||
private final Set<SubkeyIdentifier> recipients = new HashSet<>();
|
||||
private String fileName = "";
|
||||
private Date modificationDate = new Date(0L); // NOW
|
||||
private StreamEncoding encoding = StreamEncoding.BINARY;
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ public class KeyRingInfo {
|
|||
private static final Pattern PATTERN_EMAIL = Pattern.compile("[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,6}");
|
||||
|
||||
private final PGPKeyRing keys;
|
||||
private Signatures signatures;
|
||||
private final Signatures signatures;
|
||||
private final Date evaluationDate;
|
||||
private final String primaryUserId;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue