replaced Exception with IOException
parent
7e83160efa
commit
84d6fb5502
|
@ -13,7 +13,6 @@ import magic.model.MagicCardDefinition;
|
|||
public class MagicTools {
|
||||
|
||||
static void listAllCards() throws IOException {
|
||||
|
||||
final SortedSet<String> names = new TreeSet<String>();
|
||||
for (final MagicCardDefinition cardDefinition : CardDefinitions.getInstance().getCards()) {
|
||||
|
||||
|
@ -28,7 +27,6 @@ public class MagicTools {
|
|||
}
|
||||
|
||||
static void checkCards() throws IOException {
|
||||
|
||||
final CardDefinitions cardDefinitions = CardDefinitions.getInstance();
|
||||
final String filenames[] = new File(MagicMain.getGamePath(),"cards").list();
|
||||
final Set<MagicCardDefinition> remaining = new HashSet<MagicCardDefinition>(CardDefinitions.getInstance().getCards());
|
||||
|
@ -50,9 +48,8 @@ public class MagicTools {
|
|||
}
|
||||
}
|
||||
|
||||
public static void main(final String args[]) throws Exception {
|
||||
|
||||
public static void main(final String args[]) throws IOException {
|
||||
MagicMain.initializeEngine();
|
||||
checkCards();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue