Removed IOException and replaced with RuntimeException

This commit is contained in:
Obique PSWG
2018-02-04 23:23:01 -06:00
parent 716e0705c1
commit 45d2a08d66

View File

@@ -14,8 +14,12 @@ public class FileLogWrapper implements LogWrapper {
private final BufferedWriter writer;
public FileLogWrapper(File file) throws IOException {
writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file), StandardCharsets.UTF_8));
public FileLogWrapper(File file) {
try {
writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file), StandardCharsets.UTF_8));
} catch (IOException e) {
throw new RuntimeException(e);
}
}
@Override