change keyset to entryset

This commit is contained in:
Ingmar Goudt 2018-09-27 22:16:00 +02:00
parent a603c5e62c
commit 188a09b8fb

View file

@ -153,15 +153,15 @@ public final class Main {
for (ExtensionPackage pkg : extensions) { for (ExtensionPackage pkg : extensions) {
Map<String, Class> draftCubes = pkg.getDraftCubes(); Map<String, Class> draftCubes = pkg.getDraftCubes();
for (String name : draftCubes.keySet()) { draftCubes.forEach((name, draftCube) -> {
logger.info("Loading extension: [" + name + "] " + draftCubes.get(name).toString()); logger.info("Loading extension: [" + name + "] " + draftCube.toString());
CubeFactory.instance.addDraftCube(name, draftCubes.get(name)); CubeFactory.instance.addDraftCube(name, draftCube);
} });
Map<String, Class> deckTypes = pkg.getDeckTypes(); Map<String, Class> deckTypes = pkg.getDeckTypes();
for (String name : deckTypes.keySet()) { deckTypes.forEach((name, deckType) -> {
logger.info("Loading extension: [" + name + "] " + deckTypes.get(name)); logger.info("Loading extension: [" + name + "] " + deckType);
DeckValidatorFactory.instance.addDeckType(name, deckTypes.get(name)); DeckValidatorFactory.instance.addDeckType(name, deckType);
} });
} }
logger.info("Config - max seconds idle: " + config.getMaxSecondsIdle()); logger.info("Config - max seconds idle: " + config.getMaxSecondsIdle());