提交 4fba902a authored 作者: noelgrandin's avatar noelgrandin

fix for value may be null on this code path (found by FindBugs)

上级 fd7ad571
...@@ -109,10 +109,12 @@ public class Dump { ...@@ -109,10 +109,12 @@ public class Dump {
} catch (IOException e) { } catch (IOException e) {
writer.println("ERROR: " + e); writer.println("ERROR: " + e);
} finally { } finally {
try { if (file != null) {
file.close(); try {
} catch (IOException e) { file.close();
// ignore } catch (IOException e) {
// ignore
}
} }
} }
writer.println(); writer.println();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论