From: Gustavo Martin Morcuende Date: Sun, 4 Dec 2016 17:36:34 +0000 (+0100) Subject: Renaming local variables in TransactionRepository X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=b8f2c83053a667b1d33023bd557bfd428dbd1a7a;p=JavaForFun Renaming local variables in TransactionRepository --- diff --git a/TDD/sandromancuso/bank/src/main/java/org/craftedsw/feature/TransactionRepository.java b/TDD/sandromancuso/bank/src/main/java/org/craftedsw/feature/TransactionRepository.java index b778d4f..2564c16 100644 --- a/TDD/sandromancuso/bank/src/main/java/org/craftedsw/feature/TransactionRepository.java +++ b/TDD/sandromancuso/bank/src/main/java/org/craftedsw/feature/TransactionRepository.java @@ -14,13 +14,13 @@ public class TransactionRepository { } public void addDeposit(int amount) { - Transaction depositTransaction = new Transaction(clock.todayAsString(), amount); - transactions.add(depositTransaction); + Transaction deposit = new Transaction(clock.todayAsString(), amount); + transactions.add(deposit); } public void addWithdrawal(int amount) { - Transaction withdrawalTransaction = new Transaction(clock.todayAsString(), -amount); - transactions.add(withdrawalTransaction); + Transaction withdrawal = new Transaction(clock.todayAsString(), -amount); + transactions.add(withdrawal); } public List allTransactions() {