Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
VLC-Android
Commits
8eb52cba
Commit
8eb52cba
authored
Jul 18, 2014
by
Jean-Baptiste Kempf
Browse files
Logcat: close IO in finally
parent
c446cc98
Changes
1
Hide whitespace changes
Inline
Side-by-side
vlc-android/src/org/videolan/vlc/util/Logcat.java
View file @
8eb52cba
...
...
@@ -48,15 +48,18 @@ public class Logcat {
BufferedWriter
bw
=
new
BufferedWriter
(
output
);
String
line
;
while
((
line
=
br
.
readLine
())
!=
null
)
{
bw
.
write
(
line
);
bw
.
newLine
();
try
{
while
((
line
=
br
.
readLine
())
!=
null
)
{
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
();
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment