title: Is this a memory leak or a false positive?
body: <p>This is my code:</p>
  
  <pre><code>import java.io.BufferedReader;
  import java.io.FileNotFoundException;
  import java.io.FileReader;
  import java.util.Scanner;
  
  public class temp {
      public static void main(String[] args) throws FileNotFoundException {
          BufferedReader a = new BufferedReader(new FileReader("a"));
          Scanner scanner = new Scanner(a).useDelimiter(",");
          scanner.close();
      }
  }
  </code></pre>
  
  <p>I get a warning at <code>new Scanner(a)</code> that says (I'm compiling with jdk1.7.0_05.):</p>
  
  <pre><code>Resource leak: '&lt;unassigned Closeable value&gt;' is never closed.
  </code></pre>
  
  <p>Am I doing something wrong, or is this just a false warning?</p>