IOUtils.java 文件源码

java
阅读 25 收藏 0 点赞 0 评论 0

项目:VASSAL-src 作者:
/**
 * Close an {@link ObjectOutput} unconditionally. Equivalent to
 * calling <code>o.close()</code> when <code>o</code> is nonnull.
 * {@link IOException}s are swallowed, as there is generally
 * nothing that can be done about exceptions on closing.
 *
 * @param o a (possibly <code>null</code>) <code>ObjectOutput</code>
 */
public static void closeQuietly(ObjectOutput o) {
  if (o == null) return;

  try {
    o.close();
  }
  catch (IOException e) {
    // ignore
  }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号