#vulnerable code 
                                @Override
    public boolean isFilterDone() { return hasMore; } 
                            #location 2 
                            #vulnerability type THREAD_SAFETY_VIOLATION
#fixed code
                                @Override
    public boolean isFilterDone() { return false; }