HIGUCHI Yuta
Committed by Gerrit Code Review

Fix resource leak warning.

Change-Id: I7aa926d8a62220a902e983b4b692abecd8f687e1
......@@ -301,10 +301,10 @@ public abstract class Tools {
* @return file contents
*/
public static List<String> slurp(File path) {
try {
try (
BufferedReader br = new BufferedReader(
new InputStreamReader(new FileInputStream(path), StandardCharsets.UTF_8));
) {
List<String> lines = new ArrayList<>();
String line;
while ((line = br.readLine()) != null) {
......