#vulnerable code 
                                @Override
    public long getUidNext() {
        return nextUid;
    } 
                            #location 3 
                            #vulnerability type THREAD_SAFETY_VIOLATION
#fixed code
                                @Override
    public long getUidNext() {
        return nextUid.get();
    }