3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-01-30 23:02:15 +00:00

Java 8 syntax cleanup

This commit is contained in:
Mike Hearn 2014-12-03 13:09:23 +01:00
parent 1ba568e069
commit 90dace2ef5

View File

@ -136,12 +136,9 @@ public class ForwardingService {
System.out.println("Sent coins onwards! Transaction hash is " + sendResult.tx.getHashAsString());
}
}, MoreExecutors.sameThreadExecutor());
} catch (KeyCrypterException e) {
} catch (KeyCrypterException | InsufficientMoneyException e) {
// We don't use encrypted wallets in this example - can never happen.
throw new RuntimeException(e);
} catch (InsufficientMoneyException e) {
// This should never happen - we're only trying to forward what we received!
throw new RuntimeException(e);
}
}
}