#vulnerable code 
                                public boolean hasFilters() {
        return hasFilters;
    } 
                            #location 2 
                            #vulnerability type THREAD_SAFETY_VIOLATION
#fixed code
                                public boolean hasFilters() {
        return filters.hasFilters();
    }