AutoCloseable
型のローカル変数を try-with-resources ステートメントで囲みます。