Code analyzer capable to detect resource leak
<p>May I know if there is any free code analyzer that can find out the "Improper resource shutdown or release of IO or Database resources". I have tried findbugs and Sonar. Both were able to identify only those that are not closed. It couldn't identify the improperly closed ones.</p>

<p>ex: Sonar and Find bugs was unable to detect code like this:</p>

<pre><code>void method() throws IOException{
    BufferedReader br=new BufferedReader();
    String str = br.readLine();
    br.close();
}
</code></pre>