#vulnerable code 
                              public long getDownloaded() {
    return this.downloaded;
  } 
                            #location 2 
                            #vulnerability type THREAD_SAFETY_VIOLATION
#fixed code
                              public long getDownloaded() {
    return myTorrentStatistic.getDownloadedBytes();
  }