From 83139f060212513cf10a05c7585e2b415daf3e31 Mon Sep 17 00:00:00 2001 From: Gustavo Martin Morcuende Date: Sun, 4 Dec 2016 18:36:34 +0100 Subject: [PATCH] Renaming local variables in TransactionRepository --- .../main/java/org/craftedsw/feature/TransactionRepository.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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() { -- 2.1.4