1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2025-09-10 18:59:39 +02:00

Remove unnecessary throws declarations

This commit is contained in:
Paul Schaub 2022-09-29 13:02:22 +02:00
parent 81bb8cba54
commit 09f94944b3
13 changed files with 19 additions and 35 deletions

View file

@ -18,7 +18,7 @@ import sop.operation.Dearmor;
public class DearmorImpl implements Dearmor {
@Override
public Ready data(InputStream data) throws IOException {
public Ready data(InputStream data) {
InputStream decoder;
try {
decoder = PGPUtil.getDecoderStream(data);

View file

@ -71,7 +71,7 @@ public class InlineSignImpl implements InlineSign {
}
@Override
public Ready data(InputStream data) throws SOPGPException.KeyIsProtected, IOException, SOPGPException.ExpectedText {
public Ready data(InputStream data) throws SOPGPException.KeyIsProtected, SOPGPException.ExpectedText {
for (PGPSecretKeyRing key : signingKeys) {
try {
if (mode == InlineSignAs.clearsigned) {

View file

@ -49,7 +49,7 @@ public class InlineVerifyImpl implements InlineVerify {
}
@Override
public ReadyWithResult<List<Verification>> data(InputStream data) throws IOException, SOPGPException.NoSignature, SOPGPException.BadData {
public ReadyWithResult<List<Verification>> data(InputStream data) throws SOPGPException.NoSignature, SOPGPException.BadData {
return new ReadyWithResult<List<Verification>>() {
@Override
public List<Verification> writeTo(OutputStream outputStream) throws IOException, SOPGPException.NoSignature {