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

More checkstyle issues

This commit is contained in:
Paul Schaub 2021-10-20 21:40:44 +02:00
parent f0bc19b0da
commit 8b5ffedd29
4 changed files with 17 additions and 5 deletions

View file

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2021 Paul Schaub <vanitasvitae@fsfe.org>
//
// SPDX-License-Identifier: Apache-2.0
package org.pgpainless.signature.builder;
import org.bouncycastle.openpgp.PGPException;

View file

@ -37,5 +37,7 @@ public class RevocationSignatureBuilder extends AbstractSignatureBuilder<Revocat
return unhashedSubpackets;
}
public PGPSignature build()
public PGPSignature build() {
return null;
}
}

View file

@ -0,0 +1,8 @@
// SPDX-FileCopyrightText: 2021 Paul Schaub <vanitasvitae@fsfe.org>
//
// SPDX-License-Identifier: Apache-2.0
/**
* Classes related to OpenPGP signatures.
*/
package org.pgpainless.signature.builder;

View file

@ -549,12 +549,10 @@ public class SignatureSubpacketGeneratorWrapper
byte[] sig = signature.getEncoded();
byte[] data;
if (sig.length - 1 > 256)
{
if (sig.length - 1 > 256) {
data = new byte[sig.length - 3];
}
else
{
else {
data = new byte[sig.length - 2];
}