Commit 297c76a6 authored by Quxl's avatar Quxl

x

parent b499c6f4
...@@ -436,20 +436,26 @@ public class FileUtil { ...@@ -436,20 +436,26 @@ public class FileUtil {
writer.append(string).append(System.getProperty("line.separator")); writer.append(string).append(System.getProperty("line.separator"));
} }
} catch (IOException e) { } catch (IOException e) {
throw new FileUtilException(e); throw new FileUtilException("", e);
} finally { } finally {
try { try {
writer.close(); if(writer != null) {
writer.close();
}
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
} }
try { try {
osw.close(); if(osw != null) {
osw.close();
}
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
} }
try { try {
fos.close(); if(fos != null) {
fos.close();
}
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment