Program: 196548
Project: 196548
Buggy source:
public static String makeOomAdjString(int setAdj){
  if (setAdj >= ProcessList.CACHED_APP_MIN_ADJ) {
    return buildOomTag("String_Node_Str","String_Node_Str",setAdj,ProcessList.CACHED_APP_MIN_ADJ);
  }
 else   if (setAdj >= ProcessList.SERVICE_B_ADJ) {
    return buildOomTag("String_Node_Str",null,setAdj,ProcessList.SERVICE_B_ADJ);
  }
 else   if (setAdj >= ProcessList.PREVIOUS_APP_ADJ) {
    return buildOomTag("String_Node_Str",null,setAdj,ProcessList.PREVIOUS_APP_ADJ);
  }
 else   if (setAdj >= ProcessList.HOME_APP_ADJ) {
    return buildOomTag("String_Node_Str",null,setAdj,ProcessList.HOME_APP_ADJ);
  }
 else   if (setAdj >= ProcessList.SERVICE_ADJ) {
    return buildOomTag("String_Node_Str",null,setAdj,ProcessList.SERVICE_ADJ);
  }
 else   if (setAdj >= ProcessList.HEAVY_WEIGHT_APP_ADJ) {
    return buildOomTag("String_Node_Str",null,setAdj,ProcessList.HEAVY_WEIGHT_APP_ADJ);
  }
 else   if (setAdj >= ProcessList.BACKUP_APP_ADJ) {
    return buildOomTag("String_Node_Str",null,setAdj,ProcessList.BACKUP_APP_ADJ);
  }
 else   if (setAdj >= ProcessList.PERCEPTIBLE_APP_ADJ) {
    return buildOomTag("String_Node_Str",null,setAdj,ProcessList.PERCEPTIBLE_APP_ADJ);
  }
 else   if (setAdj >= ProcessList.VISIBLE_APP_ADJ) {
    return buildOomTag("String_Node_Str",null,setAdj,ProcessList.VISIBLE_APP_ADJ);
  }
 else   if (setAdj >= ProcessList.FOREGROUND_APP_ADJ) {
    return buildOomTag("String_Node_Str",null,setAdj,ProcessList.FOREGROUND_APP_ADJ);
  }
 else   if (setAdj >= ProcessList.PERSISTENT_PROC_ADJ) {
    return buildOomTag("String_Node_Str",null,setAdj,ProcessList.PERSISTENT_PROC_ADJ);
  }
 else   if (setAdj >= ProcessList.SYSTEM_ADJ) {
    return buildOomTag("String_Node_Str",null,setAdj,ProcessList.SYSTEM_ADJ);
  }
 else   if (setAdj >= ProcessList.NATIVE_ADJ) {
    return buildOomTag("String_Node_Str",null,setAdj,ProcessList.NATIVE_ADJ);
  }
 else {
    return Integer.toString(setAdj);
  }
}

Fixed version (ground truth):
public static String makeOomAdjString(int setAdj){
  if (setAdj >= ProcessList.CACHED_APP_MIN_ADJ) {
    return buildOomTag("String_Node_Str","String_Node_Str",setAdj,ProcessList.CACHED_APP_MIN_ADJ);
  }
 else   if (setAdj >= ProcessList.SERVICE_B_ADJ) {
    return buildOomTag("String_Node_Str",null,setAdj,ProcessList.SERVICE_B_ADJ);
  }
 else   if (setAdj >= ProcessList.PREVIOUS_APP_ADJ) {
    return buildOomTag("String_Node_Str",null,setAdj,ProcessList.PREVIOUS_APP_ADJ);
  }
 else   if (setAdj >= ProcessList.HOME_APP_ADJ) {
    return buildOomTag("String_Node_Str",null,setAdj,ProcessList.HOME_APP_ADJ);
  }
 else   if (setAdj >= ProcessList.SERVICE_ADJ) {
    return buildOomTag("String_Node_Str",null,setAdj,ProcessList.SERVICE_ADJ);
  }
 else   if (setAdj >= ProcessList.HEAVY_WEIGHT_APP_ADJ) {
    return buildOomTag("String_Node_Str",null,setAdj,ProcessList.HEAVY_WEIGHT_APP_ADJ);
  }
 else   if (setAdj >= ProcessList.BACKUP_APP_ADJ) {
    return buildOomTag("String_Node_Str",null,setAdj,ProcessList.BACKUP_APP_ADJ);
  }
 else   if (setAdj >= ProcessList.PERCEPTIBLE_APP_ADJ) {
    return buildOomTag("String_Node_Str",null,setAdj,ProcessList.PERCEPTIBLE_APP_ADJ);
  }
 else   if (setAdj >= ProcessList.VISIBLE_APP_ADJ) {
    return buildOomTag("String_Node_Str",null,setAdj,ProcessList.VISIBLE_APP_ADJ);
  }
 else   if (setAdj >= ProcessList.FOREGROUND_APP_ADJ) {
    return buildOomTag("String_Node_Str",null,setAdj,ProcessList.FOREGROUND_APP_ADJ);
  }
 else   if (setAdj >= ProcessList.PERSISTENT_SERVICE_ADJ) {
    return buildOomTag("String_Node_Str",null,setAdj,ProcessList.PERSISTENT_SERVICE_ADJ);
  }
 else   if (setAdj >= ProcessList.PERSISTENT_PROC_ADJ) {
    return buildOomTag("String_Node_Str",null,setAdj,ProcessList.PERSISTENT_PROC_ADJ);
  }
 else   if (setAdj >= ProcessList.SYSTEM_ADJ) {
    return buildOomTag("String_Node_Str",null,setAdj,ProcessList.SYSTEM_ADJ);
  }
 else   if (setAdj >= ProcessList.NATIVE_ADJ) {
    return buildOomTag("String_Node_Str",null,setAdj,ProcessList.NATIVE_ADJ);
  }
 else {
    return Integer.toString(setAdj);
  }
}