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];
}