mirror of
https://github.com/ProjectSWGCore/pswgcommon.git
synced 2026-01-15 23:04:19 -05:00
Removed IOException and replaced with RuntimeException
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user