minor code clean up

pull/19/head
Stefan Feuerhahn 5 years ago
parent 983fbbddb4
commit 9b7e830559

@ -15,6 +15,7 @@ package com.beanit.openiec61850.internal.cli;
import static java.lang.System.exit;
import static java.lang.System.out;
import static java.nio.charset.StandardCharsets.UTF_8;
import java.io.BufferedReader;
import java.io.IOException;
@ -35,7 +36,7 @@ public class ActionProcessor {
private volatile boolean closed = false;
public ActionProcessor(ActionListener actionListener) {
reader = new BufferedReader(new InputStreamReader(System.in));
reader = new BufferedReader(new InputStreamReader(System.in, UTF_8));
this.actionListener = actionListener;
}
@ -123,7 +124,7 @@ public class ActionProcessor {
closed = true;
try {
reader.close();
} catch (IOException e) {
} catch (IOException ignored) {
}
}
}

Loading…
Cancel
Save