Skip to content

Commit

Permalink
Merge pull request AY2425S1-CS2103T-T12-4#105 from flyingsalsa/branch…
Browse files Browse the repository at this point in the history
…-fix-case-sensitive-games

Fix case sensitive games in editgame
  • Loading branch information
Xczheng0105 authored Oct 17, 2024
2 parents 45ef7c5 + 13bab14 commit 9728194
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/seedu/address/model/person/Person.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
import static seedu.address.commons.util.CollectionUtil.requireAllNonNull;

import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import java.util.TreeMap;

import seedu.address.commons.util.ToStringBuilder;
import seedu.address.model.game.Game;
Expand All @@ -27,7 +27,7 @@ public class Person {
// Data fields
private final Address address;
private final Set<Tag> tags = new HashSet<>();
private final Map<String, Game> games = new HashMap<>();
private final Map<String, Game> games = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);

// TODO: update the preferredTime field
// TODO: update the constructors and some other method
Expand Down

0 comments on commit 9728194

Please sign in to comment.