mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
Lint: fix 'declarations should use interfaces instead of classes' bugs (#11082)
This commit is contained in:
parent
e3229d7eab
commit
2f0c1d84c5
10 changed files with 31 additions and 26 deletions
|
|
@ -144,15 +144,15 @@ public final class MtgJsonService {
|
|||
|
||||
private static final class AtomicCardsModel {
|
||||
|
||||
// list by card names, each name can havem multiple cards (two faces, different cards with same name from un-sets)
|
||||
public HashMap<String, ArrayList<MtgJsonCard>> data;
|
||||
// list by card names, each name can have multiple cards (two faces, different cards with same name from un-sets)
|
||||
public Map<String, ArrayList<MtgJsonCard>> data;
|
||||
|
||||
private boolean containsSameNames(ArrayList<MtgJsonCard> list) {
|
||||
Set<String> names = list.stream().map(MtgJsonCard::getNameAsFace).collect(Collectors.toSet());
|
||||
return names.size() == 1;
|
||||
}
|
||||
|
||||
public HashMap<String, MtgJsonCard> prepareIndex() {
|
||||
public Map<String, MtgJsonCard> prepareIndex() {
|
||||
HashMap<String, MtgJsonCard> index = new HashMap<>();
|
||||
for (Map.Entry<String, ArrayList<MtgJsonCard>> rec : data.entrySet()) {
|
||||
if (rec.getValue().size() == 1) {
|
||||
|
|
@ -179,7 +179,7 @@ public final class MtgJsonService {
|
|||
}
|
||||
|
||||
private static final class AllPrintingsModel {
|
||||
public HashMap<String, MtgJsonSet> data;
|
||||
public Map<String, MtgJsonSet> data;
|
||||
public MtgJsonMetadata meta;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue