Program: 177738
Project: 177738
Buggy source:
public int compareTo(TResult other){
  if (!getClass().equals(other.getClass())) {
    return getClass().getName().compareTo(other.getClass().getName());
  }
  int lastComparison=0;
  TResult typedOther=(TResult)other;
  lastComparison=Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
  if (lastComparison != 0) {
    return lastComparison;
  }
  if (isSetId()) {
    lastComparison=org.apache.thrift.TBaseHelper.compareTo(this.id,typedOther.id);
    if (lastComparison != 0) {
      return lastComparison;
    }
  }
  lastComparison=Boolean.valueOf(isSetRsv()).compareTo(typedOther.isSetRsv());
  if (lastComparison != 0) {
    return lastComparison;
  }
  if (isSetRsv()) {
    lastComparison=org.apache.thrift.TBaseHelper.compareTo(this.rsv,typedOther.rsv);
    if (lastComparison != 0) {
      return lastComparison;
    }
  }
  lastComparison=Boolean.valueOf(isSetScreen_name()).compareTo(typedOther.isSetScreen_name());
  if (lastComparison != 0) {
    return lastComparison;
  }
  if (isSetScreen_name()) {
    lastComparison=org.apache.thrift.TBaseHelper.compareTo(this.screen_name,typedOther.screen_name);
    if (lastComparison != 0) {
      return lastComparison;
    }
  }
  lastComparison=Boolean.valueOf(isSetCreated_at()).compareTo(typedOther.isSetCreated_at());
  if (lastComparison != 0) {
    return lastComparison;
  }
  if (isSetCreated_at()) {
    lastComparison=org.apache.thrift.TBaseHelper.compareTo(this.created_at,typedOther.created_at);
    if (lastComparison != 0) {
      return lastComparison;
    }
  }
  lastComparison=Boolean.valueOf(isSetText()).compareTo(typedOther.isSetText());
  if (lastComparison != 0) {
    return lastComparison;
  }
  if (isSetText()) {
    lastComparison=org.apache.thrift.TBaseHelper.compareTo(this.text,typedOther.text);
    if (lastComparison != 0) {
      return lastComparison;
    }
  }
  return 0;
}

Fixed version (ground truth):
public int compareTo(TResult other){
  if (!getClass().equals(other.getClass())) {
    return getClass().getName().compareTo(other.getClass().getName());
  }
  int lastComparison=0;
  TResult typedOther=(TResult)other;
  lastComparison=Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
  if (lastComparison != 0) {
    return lastComparison;
  }
  if (isSetId()) {
    lastComparison=org.apache.thrift.TBaseHelper.compareTo(this.id,typedOther.id);
    if (lastComparison != 0) {
      return lastComparison;
    }
  }
  lastComparison=Boolean.valueOf(isSetRsv()).compareTo(typedOther.isSetRsv());
  if (lastComparison != 0) {
    return lastComparison;
  }
  if (isSetRsv()) {
    lastComparison=org.apache.thrift.TBaseHelper.compareTo(this.rsv,typedOther.rsv);
    if (lastComparison != 0) {
      return lastComparison;
    }
  }
  lastComparison=Boolean.valueOf(isSetScreen_name()).compareTo(typedOther.isSetScreen_name());
  if (lastComparison != 0) {
    return lastComparison;
  }
  if (isSetScreen_name()) {
    lastComparison=org.apache.thrift.TBaseHelper.compareTo(this.screen_name,typedOther.screen_name);
    if (lastComparison != 0) {
      return lastComparison;
    }
  }
  lastComparison=Boolean.valueOf(isSetEpoch()).compareTo(typedOther.isSetEpoch());
  if (lastComparison != 0) {
    return lastComparison;
  }
  if (isSetEpoch()) {
    lastComparison=org.apache.thrift.TBaseHelper.compareTo(this.epoch,typedOther.epoch);
    if (lastComparison != 0) {
      return lastComparison;
    }
  }
  lastComparison=Boolean.valueOf(isSetText()).compareTo(typedOther.isSetText());
  if (lastComparison != 0) {
    return lastComparison;
  }
  if (isSetText()) {
    lastComparison=org.apache.thrift.TBaseHelper.compareTo(this.text,typedOther.text);
    if (lastComparison != 0) {
      return lastComparison;
    }
  }
  lastComparison=Boolean.valueOf(isSetFollowers_count()).compareTo(typedOther.isSetFollowers_count());
  if (lastComparison != 0) {
    return lastComparison;
  }
  if (isSetFollowers_count()) {
    lastComparison=org.apache.thrift.TBaseHelper.compareTo(this.followers_count,typedOther.followers_count);
    if (lastComparison != 0) {
      return lastComparison;
    }
  }
  lastComparison=Boolean.valueOf(isSetStatuses_count()).compareTo(typedOther.isSetStatuses_count());
  if (lastComparison != 0) {
    return lastComparison;
  }
  if (isSetStatuses_count()) {
    lastComparison=org.apache.thrift.TBaseHelper.compareTo(this.statuses_count,typedOther.statuses_count);
    if (lastComparison != 0) {
      return lastComparison;
    }
  }
  lastComparison=Boolean.valueOf(isSetLang()).compareTo(typedOther.isSetLang());
  if (lastComparison != 0) {
    return lastComparison;
  }
  if (isSetLang()) {
    lastComparison=org.apache.thrift.TBaseHelper.compareTo(this.lang,typedOther.lang);
    if (lastComparison != 0) {
      return lastComparison;
    }
  }
  lastComparison=Boolean.valueOf(isSetIn_reply_to_status_id()).compareTo(typedOther.isSetIn_reply_to_status_id());
  if (lastComparison != 0) {
    return lastComparison;
  }
  if (isSetIn_reply_to_status_id()) {
    lastComparison=org.apache.thrift.TBaseHelper.compareTo(this.in_reply_to_status_id,typedOther.in_reply_to_status_id);
    if (lastComparison != 0) {
      return lastComparison;
    }
  }
  lastComparison=Boolean.valueOf(isSetIn_reply_to_user_id()).compareTo(typedOther.isSetIn_reply_to_user_id());
  if (lastComparison != 0) {
    return lastComparison;
  }
  if (isSetIn_reply_to_user_id()) {
    lastComparison=org.apache.thrift.TBaseHelper.compareTo(this.in_reply_to_user_id,typedOther.in_reply_to_user_id);
    if (lastComparison != 0) {
      return lastComparison;
    }
  }
  lastComparison=Boolean.valueOf(isSetRetweeted_status_id()).compareTo(typedOther.isSetRetweeted_status_id());
  if (lastComparison != 0) {
    return lastComparison;
  }
  if (isSetRetweeted_status_id()) {
    lastComparison=org.apache.thrift.TBaseHelper.compareTo(this.retweeted_status_id,typedOther.retweeted_status_id);
    if (lastComparison != 0) {
      return lastComparison;
    }
  }
  lastComparison=Boolean.valueOf(isSetRetweeted_user_id()).compareTo(typedOther.isSetRetweeted_user_id());
  if (lastComparison != 0) {
    return lastComparison;
  }
  if (isSetRetweeted_user_id()) {
    lastComparison=org.apache.thrift.TBaseHelper.compareTo(this.retweeted_user_id,typedOther.retweeted_user_id);
    if (lastComparison != 0) {
      return lastComparison;
    }
  }
  lastComparison=Boolean.valueOf(isSetRetweeted_count()).compareTo(typedOther.isSetRetweeted_count());
  if (lastComparison != 0) {
    return lastComparison;
  }
  if (isSetRetweeted_count()) {
    lastComparison=org.apache.thrift.TBaseHelper.compareTo(this.retweeted_count,typedOther.retweeted_count);
    if (lastComparison != 0) {
      return lastComparison;
    }
  }
  return 0;
}