Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
[ID: 558956]
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
The following code:
Gets flagged by lint:
While yes, I do not call
close()
on the returnedInputStream
, I use okio to a buffered source, on which I call Kotlin'suse
which does call close and bubbles up all the way from the buffered source to the initialInputStream
.Would it be possible to detect that the return statement of
inputStream
is chained by something which is then using Kotlin'suse
which does call at the endclose
?