#vulnerable code 
                                public int getMaxRows() throws SQLException {
        checkOpen();
        return rs.maxRows;
    } 
                            #location 2 
                            #vulnerability type THREAD_SAFETY_VIOLATION
#fixed code
                                public int getMaxRows() throws SQLException {
        //checkOpen();
        return rs.maxRows;
    }