Skip to content

Commit

Permalink
use ArrayList in favor of LinkedList
Browse files Browse the repository at this point in the history
  • Loading branch information
mathisdt committed Mar 21, 2021
1 parent 004f43b commit 3fb4b2a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import java.math.RoundingMode;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;

import com.google.common.collect.ComparisonChain;
Expand All @@ -25,7 +25,7 @@ public class Account implements Comparable<Account>, Iterable<Posting> {
private BigDecimal balance = new BigDecimal(0);
private String currency = "";
private String balanceDate = "";
private List<Posting> postings = new LinkedList<>();
private List<Posting> postings = new ArrayList<>();

public Account(String name, String iban) {
setName(name);
Expand Down

0 comments on commit 3fb4b2a

Please sign in to comment.