mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-26 22:32:07 +01:00
More checkstyle issues
This commit is contained in:
parent
f0bc19b0da
commit
8b5ffedd29
4 changed files with 17 additions and 5 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
// SPDX-FileCopyrightText: 2021 Paul Schaub <vanitasvitae@fsfe.org>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
package org.pgpainless.signature.builder;
|
package org.pgpainless.signature.builder;
|
||||||
|
|
||||||
import org.bouncycastle.openpgp.PGPException;
|
import org.bouncycastle.openpgp.PGPException;
|
||||||
|
|
|
@ -37,5 +37,7 @@ public class RevocationSignatureBuilder extends AbstractSignatureBuilder<Revocat
|
||||||
return unhashedSubpackets;
|
return unhashedSubpackets;
|
||||||
}
|
}
|
||||||
|
|
||||||
public PGPSignature build()
|
public PGPSignature build() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
|
@ -549,12 +549,10 @@ public class SignatureSubpacketGeneratorWrapper
|
||||||
byte[] sig = signature.getEncoded();
|
byte[] sig = signature.getEncoded();
|
||||||
byte[] data;
|
byte[] data;
|
||||||
|
|
||||||
if (sig.length - 1 > 256)
|
if (sig.length - 1 > 256) {
|
||||||
{
|
|
||||||
data = new byte[sig.length - 3];
|
data = new byte[sig.length - 3];
|
||||||
}
|
}
|
||||||
else
|
else {
|
||||||
{
|
|
||||||
data = new byte[sig.length - 2];
|
data = new byte[sig.length - 2];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue