From f4bab10327d1e90811bb400ee237c89077122748 Mon Sep 17 00:00:00 2001 From: nicksavers Date: Fri, 1 Aug 2014 20:28:34 +0200 Subject: [PATCH] Define Map interface instead of implementation --- ethereumj-core/src/main/java/org/ethereum/core/Wallet.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ethereumj-core/src/main/java/org/ethereum/core/Wallet.java b/ethereumj-core/src/main/java/org/ethereum/core/Wallet.java index fb07bd30..aabf2bc2 100644 --- a/ethereumj-core/src/main/java/org/ethereum/core/Wallet.java +++ b/ethereumj-core/src/main/java/org/ethereum/core/Wallet.java @@ -21,6 +21,7 @@ import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.List; +import java.util.Map; /** * The Wallet handles the management of accounts with addresses and private keys. @@ -33,12 +34,12 @@ public class Wallet { // private HashMap rows = new HashMap<>(); // table for a wallet - private HashMap rows = new HashMap(); + private Map rows = new HashMap<>(); private long high; - private List listeners = new ArrayList(); + private List listeners = new ArrayList<>(); - private HashMap transactionMap = new HashMap(); + private Map transactionMap = new HashMap<>(); public void addNewAccount() { Account account = new Account();