Skip to content

Commit

Permalink
Fix ordering of Tasks loaded by changing HashSet to ArrayList
Browse files Browse the repository at this point in the history
  • Loading branch information
irvinlim committed Oct 15, 2016
1 parent d0b64c7 commit 370378c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/java/seedu/todo/models/TodoListDB.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

import java.io.IOException;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import seedu.todo.commons.exceptions.CannotRedoException;
import seedu.todo.commons.exceptions.CannotUndoException;
Expand All @@ -16,8 +14,8 @@ public class TodoListDB {
private static TodoListDB instance = null;
private static Storage storage = new JsonStorage();

private Set<Task> tasks = new HashSet<Task>();
private Set<Event> events = new HashSet<Event>();
private List<Task> tasks = new ArrayList<Task>();
private List<Event> events = new ArrayList<Event>();

protected TodoListDB() {
// Prevent instantiation.
Expand Down

0 comments on commit 370378c

Please sign in to comment.