Renaming local variables in TransactionRepository
authorGustavo Martin Morcuende <gu.martinm@gmail.com>
Sun, 4 Dec 2016 17:36:34 +0000 (18:36 +0100)
committerGustavo Martin Morcuende <gu.martinm@gmail.com>
Sun, 4 Dec 2016 22:30:25 +0000 (23:30 +0100)
TDD/sandromancuso/bank/src/main/java/org/craftedsw/feature/TransactionRepository.java

index b778d4f..2564c16 100644 (file)
@@ -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<Transaction> allTransactions() {