diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-02-19 13:06:57 +0100 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-02-19 13:06:57 +0100 |
commit | 7436bf578c23dc012dd90a60f82d9afe3ee891e3 (patch) | |
tree | a35e051123c45aaad6101f4d4a11b9bb941b4f53 | |
parent | b952af90e6b5a3007f4d1230e1ec78a0d90cbc29 (diff) | |
download | open-keychain-7436bf578c23dc012dd90a60f82d9afe3ee891e3.tar.gz open-keychain-7436bf578c23dc012dd90a60f82d9afe3ee891e3.tar.bz2 open-keychain-7436bf578c23dc012dd90a60f82d9afe3ee891e3.zip |
cleanup
2 files changed, 6 insertions, 9 deletions
diff --git a/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpOperationIncoming.java b/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpOperationIncoming.java index b018f35d8..b6d7433be 100644 --- a/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpOperationIncoming.java +++ b/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpOperationIncoming.java @@ -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); diff --git a/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpOperationOutgoing.java b/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpOperationOutgoing.java index 52e41306f..044fe5aad 100644 --- a/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpOperationOutgoing.java +++ b/OpenPGP-Keychain/src/main/java/org/sufficientlysecure/keychain/pgp/PgpOperationOutgoing.java @@ -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 == ' '; - } - } |