finally
に
resource.close()
がある
try-finally
ブロックを
resource.use()
の呼び出しに変換します。