将
finally
中带有
resource.close()
的
try-finally
块转换为
resource.use()
调用。