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