#fixed code
                                boolean hasConnected() {
        return connected;
    }
#vulnerable code 
                                void setProperties(Properties properties) {
        this.properties = properties;
    } 
                            #location 2 
                            #vulnerability type THREAD_SAFETY_VIOLATION