From fc923f84737c2ddfe01c2e34cd5365c8c38d237c Mon Sep 17 00:00:00 2001 From: Andreas Schildbach Date: Fri, 6 Jun 2014 16:37:34 +0200 Subject: [PATCH] Remove unused CouldNotAdjustDownwards. Move JavaDoc to the real one. --- .../bitcoin/core/InsufficientMoneyException.java | 11 ----------- .../src/main/java/com/google/bitcoin/core/Wallet.java | 5 +++++ 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/core/src/main/java/com/google/bitcoin/core/InsufficientMoneyException.java b/core/src/main/java/com/google/bitcoin/core/InsufficientMoneyException.java index 03858941..883ddd92 100644 --- a/core/src/main/java/com/google/bitcoin/core/InsufficientMoneyException.java +++ b/core/src/main/java/com/google/bitcoin/core/InsufficientMoneyException.java @@ -40,15 +40,4 @@ public class InsufficientMoneyException extends Exception { super(message); this.missing = checkNotNull(missing); } - - /** - * Thrown when we were trying to empty the wallet, and the total amount of money we were trying to empty after - * being reduced for the fee was smaller than the min payment. Note that the missing field will be null in this - * case. - */ - public static class CouldNotAdjustDownwards extends InsufficientMoneyException { - public CouldNotAdjustDownwards() { - super(); - } - } } diff --git a/core/src/main/java/com/google/bitcoin/core/Wallet.java b/core/src/main/java/com/google/bitcoin/core/Wallet.java index 55470b03..788e4636 100644 --- a/core/src/main/java/com/google/bitcoin/core/Wallet.java +++ b/core/src/main/java/com/google/bitcoin/core/Wallet.java @@ -2364,6 +2364,11 @@ public class Wallet extends BaseTaggableObject implements Serializable, BlockCha public static class CompletionException extends RuntimeException {} public static class DustySendRequested extends CompletionException {} + /** + * Thrown when we were trying to empty the wallet, and the total amount of money we were trying to empty after + * being reduced for the fee was smaller than the min payment. Note that the missing field will be null in this + * case. + */ public static class CouldNotAdjustDownwards extends CompletionException {} public static class ExceededMaxTransactionSize extends CompletionException {}