removed previously introduced workaround for lowercase comparison

This commit is contained in:
leriomaggio
2021-08-04 10:58:23 +01:00
parent 8fba92acde
commit ce589ca6e8

View File

@@ -379,13 +379,13 @@ public final class CardEdition implements Comparable<CardEdition> {
cardsInSetLookupMap = new TreeMap<>(); cardsInSetLookupMap = new TreeMap<>();
List<CardInSet> cardsInSet = this.getAllCardsInSet(); List<CardInSet> cardsInSet = this.getAllCardsInSet();
for (CardInSet cis : cardsInSet){ for (CardInSet cis : cardsInSet){
String key = cis.name.toLowerCase(); String key = cis.name;
List<CardInSet> versions = cardsInSetLookupMap.getOrDefault(key, new ArrayList<>()); List<CardInSet> versions = cardsInSetLookupMap.getOrDefault(key, new ArrayList<>());
versions.add(cis); versions.add(cis);
cardsInSetLookupMap.put(key, versions); cardsInSetLookupMap.put(key, versions);
} }
} }
return this.cardsInSetLookupMap.getOrDefault(cardName.toLowerCase(), new ArrayList<>()); return this.cardsInSetLookupMap.getOrDefault(cardName, new ArrayList<>());
} }
public boolean isModern() { return getDate().after(parseDate("2003-07-27")); } //8ED and above are modern except some promo cards and others public boolean isModern() { return getDate().after(parseDate("2003-07-27")); } //8ED and above are modern except some promo cards and others