Lint: fix 'declarations should use interfaces instead of classes' bugs (#11082)

This commit is contained in:
arcox 2023-08-31 13:42:45 -04:00 committed by GitHub
parent e3229d7eab
commit 2f0c1d84c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 31 additions and 26 deletions

View file

@ -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;
}