#fixed code
                                public void setTypeMap(Map map) throws SQLException {
        synchronized (this) {
            this.typeMap = map;
        }
    }
#vulnerable code 
                                public void setTypeMap(Map map) throws SQLException {
        synchronized (typeMap) {
            this.typeMap = map;
        }
    } 
                            #location 2 
                            #vulnerability type THREAD_SAFETY_VIOLATION