replaced Exception with IOException

master
melvin 2011-08-03 13:45:13 +08:00
parent 7e83160efa
commit 84d6fb5502
1 changed files with 2 additions and 5 deletions

View File

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