Code clean for potential JDBC leak

Is there features that can detect for potential JDBC or database leak in the code?

Hey there.

It would be great if you could provide a code sample where you’d expect to see an issue raised.

And, I can point you in the direction of S4925: Resources should be closed.