I need one genric java code to read Java/servlet/jsp files and identify Connection,Statement,ResultSet Objects And find out whthere they have been closed.
Output should be like this : Source file Connection/Statement/Resultset not closed

So write it. I doubt you're going to find any "generic" code for that.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.