mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-01-31 07:12:17 +00:00
Java 8 syntax cleanup
This commit is contained in:
parent
1ba568e069
commit
90dace2ef5
@ -136,12 +136,9 @@ public class ForwardingService {
|
|||||||
System.out.println("Sent coins onwards! Transaction hash is " + sendResult.tx.getHashAsString());
|
System.out.println("Sent coins onwards! Transaction hash is " + sendResult.tx.getHashAsString());
|
||||||
}
|
}
|
||||||
}, MoreExecutors.sameThreadExecutor());
|
}, MoreExecutors.sameThreadExecutor());
|
||||||
} catch (KeyCrypterException e) {
|
} catch (KeyCrypterException | InsufficientMoneyException e) {
|
||||||
// We don't use encrypted wallets in this example - can never happen.
|
// We don't use encrypted wallets in this example - can never happen.
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
} catch (InsufficientMoneyException e) {
|
|
||||||
// This should never happen - we're only trying to forward what we received!
|
|
||||||
throw new RuntimeException(e);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user