I just wasted a few days because of an unclosed Cursor in my Android project.
I was wondering if it would be possible to use Idea's structural search and replace feature to find any occurences of this in my project.
Basically it should find any instance of Cursor where the method returns before calling close() on it. Except if the method returns the cursor, in which case it is the caller that should call close() on it.
Would that be possible in theory?
Thanks for your help!