mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-12-25 08:28:50 -05:00
cleanup
This commit is contained in:
parent
b952af90e6
commit
7436bf578c
@ -624,8 +624,8 @@ public class PgpOperationIncoming {
|
||||
|
||||
|
||||
// taken from ClearSignedFileProcessor in BC
|
||||
private static void processLine(PGPSignature sig, byte[] line) throws SignatureException,
|
||||
IOException {
|
||||
private static void processLine(PGPSignature sig, byte[] line)
|
||||
throws SignatureException, IOException {
|
||||
int length = getLengthWithoutWhiteSpace(line);
|
||||
if (length > 0) {
|
||||
sig.update(line, 0, length);
|
||||
|
@ -539,7 +539,8 @@ public class PgpOperationOutgoing {
|
||||
|
||||
|
||||
private static void processLine(final String pLine, final ArmoredOutputStream pArmoredOutput,
|
||||
final PGPSignatureGenerator pSignatureGenerator) throws IOException, SignatureException {
|
||||
final PGPSignatureGenerator pSignatureGenerator)
|
||||
throws IOException, SignatureException {
|
||||
|
||||
if (pLine == null) {
|
||||
return;
|
||||
@ -564,8 +565,8 @@ public class PgpOperationOutgoing {
|
||||
}
|
||||
|
||||
private static void processLine(final String pLine, final ArmoredOutputStream pArmoredOutput,
|
||||
final PGPV3SignatureGenerator pSignatureGenerator) throws IOException,
|
||||
SignatureException {
|
||||
final PGPV3SignatureGenerator pSignatureGenerator)
|
||||
throws IOException, SignatureException {
|
||||
|
||||
if (pLine == null) {
|
||||
return;
|
||||
@ -589,8 +590,4 @@ public class PgpOperationOutgoing {
|
||||
pSignatureGenerator.update(data);
|
||||
}
|
||||
|
||||
private static boolean isWhiteSpace(byte b) {
|
||||
return b == '\r' || b == '\n' || b == '\t' || b == ' ';
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user