removed unnecessary imports and throws
parent
0478cbcfea
commit
8b6ad6ec2a
|
@ -1,6 +1,5 @@
|
|||
package magic.data;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.InputStreamReader;
|
||||
|
@ -153,7 +152,7 @@ public class CardDefinitions {
|
|||
}
|
||||
}
|
||||
|
||||
private void loadCardDefinitions(final String filename) throws IOException {
|
||||
private void loadCardDefinitions(final String filename) {
|
||||
|
||||
// Cards.
|
||||
final InputStream stream=this.getClass().getResourceAsStream(filename);
|
||||
|
@ -188,8 +187,7 @@ public class CardDefinitions {
|
|||
checkCard(cardDefinition);
|
||||
}
|
||||
|
||||
public void loadCardDefinitions() throws IOException {
|
||||
|
||||
public void loadCardDefinitions() {
|
||||
loadCardDefinitions(CARDS_FILENAME);
|
||||
loadCardDefinitions(EXTRA_CARDS_FILENAME);
|
||||
filterCards();
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package magic.data;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.File;
|
||||
import java.io.FileFilter;
|
||||
import java.io.FileInputStream;
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
package magic.data;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.BufferedWriter;
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
|
|
Loading…
Reference in New Issue