fix: don't bother with error catching

This commit is contained in:
zaaarf 2023-08-27 01:07:53 +02:00
parent 5bd9f685b1
commit 4cb9bb46e0
No known key found for this signature in database
GPG key ID: 6445A5CD15E5B40C

View file

@ -21,10 +21,10 @@ public class MappingWriter {
/** /**
* The main function, must be passed exactly two arguments * The main function, must be passed exactly two arguments
* @param args the command line arguments * @param args the command line arguments
* @throws IOException if something goes wrong * @throws IOException if something goes wrong while writing the file
* @throws ParseException if something goes wrong while parsin arguments
*/ */
public static void main(String[] args) throws IOException, ParseException { public static void main(String[] args) throws IOException, ParseException {
try {
Options options = new Options() Options options = new Options()
.addOption("r", "reverse", false, "Writes down inverted mappings"); .addOption("r", "reverse", false, "Writes down inverted mappings");
DefaultParser parser = new DefaultParser(); DefaultParser parser = new DefaultParser();
@ -73,8 +73,5 @@ public class MappingWriter {
PrintWriter printWriter = new PrintWriter(new FileWriter(targetFile)); PrintWriter printWriter = new PrintWriter(new FileWriter(targetFile));
writer.write(mapper, printWriter); writer.write(mapper, printWriter);
printWriter.close(); printWriter.close();
} catch(ParseException ex) {
ex.printStackTrace();
}
} }
} }