#fixed code
                              public long getUploaded() {
    return myTorrentStatistic.getUploadedBytes();
  }
#vulnerable code 
                              public long getUploaded() {
    return this.uploaded;
  } 
                            #location 2 
                            #vulnerability type THREAD_SAFETY_VIOLATION