try-with-resources详解
作者:互联网
转自 https://blog.csdn.net/qq_25665807/article/details/74467929
https://glory.blog.csdn.net/article/details/86093723
这是编译后的代码
try { OutputStream outputStream = new FileOutputStream(tmpFile); Throwable var29 = null; try { xssfWorkbook.write(outputStream); } catch (Throwable var23) { var29 = var23; throw var23; } finally { if (outputStream != null) { if (var29 != null) { try { outputStream.close(); } catch (Throwable var22) { var29.addSuppressed(var22); } } else { outputStream.close(); } } } } catch (Exception var25) { var25.printStackTrace(); }
标签:outputStream,try,详解,var29,catch,Throwable,null,resources 来源: https://www.cnblogs.com/person008/p/16504643.html