Commit 8eb52cba authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf
Browse files

Logcat: close IO in finally

parent c446cc98
...@@ -48,15 +48,18 @@ public class Logcat { ...@@ -48,15 +48,18 @@ public class Logcat {
BufferedWriter bw = new BufferedWriter(output); BufferedWriter bw = new BufferedWriter(output);
String line; String line;
while ((line = br.readLine()) != null) { try {
bw.write(line); while ((line = br.readLine()) != null) {
bw.newLine(); bw.write(line);
bw.newLine();
}
}catch(Exception e) {}
finally {
bw.close();
output.close();
br.close();
input.close();
} }
bw.close();
output.close();
br.close();
input.close();
} }
/** /**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment