在 try-with-resources 语句中包装 AutoCloseable 类型的局部变量。