Fix a bunch of trivial code warnings

This commit is contained in:
Vincent Breitmoser
2018-01-22 15:43:31 +01:00
parent 583b427336
commit 5c2e4f889f
111 changed files with 453 additions and 455 deletions

View File

@@ -20,13 +20,13 @@ package org.sufficientlysecure.keychain.pgp;
import org.sufficientlysecure.keychain.util.Passphrase;
public interface PassphraseCacheInterface {
public static class NoSecretKeyException extends Exception {
class NoSecretKeyException extends Exception {
public NoSecretKeyException() {
}
}
public Passphrase getCachedPassphrase(long subKeyId) throws NoSecretKeyException;
Passphrase getCachedPassphrase(long subKeyId) throws NoSecretKeyException;
public Passphrase getCachedPassphrase(long masterKeyId, long subKeyId) throws NoSecretKeyException;
Passphrase getCachedPassphrase(long masterKeyId, long subKeyId) throws NoSecretKeyException;
}

View File

@@ -579,7 +579,6 @@ public class PgpDecryptVerifyOperation extends BaseOperation<PgpDecryptVerifyInp
CanonicalizedSecretKey decryptionKey = null;
CachingDataDecryptorFactory cachedKeyDecryptorFactory = new CachingDataDecryptorFactory(
Constants.BOUNCY_CASTLE_PROVIDER_NAME, cryptoInput.getCryptoData());
;
Passphrase passphrase = null;

View File

@@ -255,8 +255,8 @@ public class UncachedKeyRing {
}
public interface IteratorWithIOThrow<E> {
public boolean hasNext() throws IOException;
public E next() throws IOException;
boolean hasNext() throws IOException;
E next() throws IOException;
}
public void encodeArmored(OutputStream out, String version) throws IOException {
ArmoredOutputStream aos = new ArmoredOutputStream(out);