提交 d0a56eac authored 作者: LaughingMan's avatar LaughingMan

Remove code duplication

上级 cb7f7c1b
......@@ -191,9 +191,7 @@ public class CreateCluster extends Tool {
while (rs.next()) {
pipeWriter.write(rs.getString(1) + "\n");
}
} catch (SQLException ex) {
throw new IllegalStateException("Producing script from the source DB is failing.", ex);
} catch (IOException ex) {
} catch (SQLException | IOException ex) {
throw new IllegalStateException("Producing script from the source DB is failing.", ex);
} finally {
IOUtils.closeSilently(pipeWriter);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论