@@ -0,0 +1,1843 @@
+package sfBugs;%0A%0Aimport java.sql.Connection;%0Aimport java.sql.PreparedStatement;%0Aimport java.sql.SQLException;%0Aimport java.sql.Statement;%0A%0Apublic class Bug1562060 %7B%0A%0A    void f4(Connection conn, String query) throws SQLException %7B%0A        PreparedStatement preparedStmt = conn.prepareStatement(query);%0A        preparedStmt.execute();%0A    %7D%0A    void f5(Connection conn, String query) throws SQLException %7B%0A        Statement stmt = conn.createStatement();%0A        stmt.execute(query);%0A    %7D%0A    /*%0A    void falseNegative(Connection conn, String query) throws SQLException %7B%0A        PreparedStatement preparedStmt = null;%0A        try %7B%0A%0A            preparedStmt = conn.prepareStatement(query);%0A        %7D finally %7B%0A            if (null != preparedStmt) %7B%0A                try %7B%0A                    preparedStmt.close();%0A                %7D catch (SQLException e) %7B%0A                    e.printStackTrace();%0A%0A                %7D%0A%0A            %7D%0A        %7D%0A    %7D%0A%0A    void f2(Connection conn, String query) throws SQLException %7B%0A        PreparedStatement preparedStmt = null;%0A        try %7B%0A%0A            preparedStmt = conn.prepareStatement(query);%0A        %7D finally %7B%0A            if (preparedStmt != null) %7B%0A                try %7B%0A                    preparedStmt.close();%0A                %7D catch (SQLException e) %7B%0A                    e.printStackTrace();%0A%0A                %7D%0A%0A            %7D%0A        %7D%0A    %7D%0A%0A    void f3(Connection conn, String query) throws SQLException %7B%0A        PreparedStatement preparedStmt = null;%0A        try %7B%0A%0A            preparedStmt = conn.prepareStatement(query);%0A        %7D finally %7B%0A            if (preparedStmt == null) %7B%0A                try %7B%0A                    preparedStmt.close();%0A                %7D catch (SQLException e) %7B%0A                    e.printStackTrace();%0A%0A                %7D%0A%0A            %7D%0A        %7D%0A    %7D%0A*/%0A    %0A%7D

add sourceforge test case