I have the following problem: I attempt to find the places in the codebase
where the jdbc connections are not closed properly (for instance). So I'm
looking for pieces of code that open a connection and don't close it in the
Generally speaking, I look for code fragments that have a certain thing and
don't have another in a given scope.
Two things come to mind: inspections and structural search. Having an inspection
for this type of thing would be way cool (not sure how hard to implement
it would be, though), but I was hoping I could use the structural search
for now. Didn't manage to figure out a solution, so far. Can it be done?