From: Damyan Ivanov Date: Mon, 11 Nov 2019 06:39:20 +0000 (+0200) Subject: fix format spec in exception reporting X-Git-Tag: v0.11.0~75 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=a464909fb8bb0d3093579c4c4224304dabb2d2b2;p=mobile-ledger.git fix format spec in exception reporting bonus: spot the irony --- diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionModel.java b/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionModel.java index 44327cbe..7cbbeca2 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionModel.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionModel.java @@ -279,7 +279,7 @@ public class NewTransactionModel extends ViewModel { public void ensureType(ItemType wantedType) { if (type != wantedType) { throw new RuntimeException( - String.format("Actual type (%d) differs from wanted (%s)", type, + String.format("Actual type (%s) differs from wanted (%s)", type, wantedType)); } }