package sfBugsNew;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;

import edu.umd.cs.findbugs.annotations.NoWarning;

public class Bug1179 {

    @NoWarning("OBL_UNSATISFIED_OBLIGATION")
    public void bug(Connection connection) throws SQLException {
        PreparedStatement ps = null;
        try {
            ps = connection.prepareStatement("SELECT * FROM Employees");

        } catch (Exception e) {

        } finally {
            if (ps != null)
                ps.close();
        }
    }
}

Add test case; could not reproduce false positive report
Add test case; could not reproduce false positive report

git-svn-id: e7d6bde23f017c9ff4efd468d79d66def666766b@14758 eae3c2d3-9b19-0410-a86e-396b6ccb6ab3
