Program: 32061
Project: 32061
Buggy source:
@SuppressWarnings("String_Node_Str") private void saveColumnStatus() throws IOException {
  Path localColumnStatsPath=new Path(pathFinder.getLocalColumnStatsPath());
  log.info("String_Node_Str",localColumnStatsPath);
  if (HDFSUtils.getLocalFS().exists(localColumnStatsPath)) {
    HDFSUtils.getLocalFS().delete(localColumnStatsPath);
  }
  BufferedWriter writer=null;
  try {
    writer=ShifuFileUtils.getWriter(localColumnStatsPath.toString(),SourceType.LOCAL);
    writer.write("String_Node_Str" + "String_Node_Str" + "String_Node_Str");
    StringBuilder builder=new StringBuilder(500);
    for (    ColumnConfig columnConfig : columnConfigList) {
      builder.setLength(0);
      builder.append(modelConfig.getBasic().getName()).append(',');
      builder.append(columnConfig.getColumnFlag()).append(',');
      builder.append(columnConfig.getColumnName()).append(',');
      builder.append(columnConfig.getColumnNum()).append(',');
      builder.append(columnConfig.getIv()).append(',');
      builder.append(columnConfig.getKs()).append(',');
      builder.append(columnConfig.getColumnStats().getMax()).append(',');
      builder.append(columnConfig.getColumnStats().getMean()).append(',');
      builder.append(columnConfig.getColumnStats().getMedian()).append(',');
      builder.append(columnConfig.getColumnStats().getMin()).append(',');
      builder.append(columnConfig.getColumnStats().getMissingCount()).append(',');
      builder.append(columnConfig.getColumnStats().getMissingPercentage()).append(',');
      builder.append(columnConfig.getColumnStats().getStdDev()).append(',');
      builder.append(columnConfig.getColumnStats().getTotalCount()).append(',');
      builder.append(columnConfig.getColumnStats().getDistinctCount()).append(',');
      builder.append(columnConfig.getColumnStats().getWeightedIv()).append(',');
      builder.append(columnConfig.getColumnStats().getWeightedKs()).append(',');
      builder.append(columnConfig.getColumnStats().getWeightedWoe()).append(',');
      builder.append(columnConfig.getColumnStats().getWoe()).append(',');
      builder.append(columnConfig.getColumnStats().getSkewness()).append(',');
      builder.append(columnConfig.getColumnStats().getKurtosis()).append(',');
      builder.append(columnConfig.getColumnType()).append(',');
      builder.append(columnConfig.isFinalSelect()).append(',');
      builder.append(modelConfig.getBasic().getVersion()).append("String_Node_Str");
      writer.write(builder.toString());
    }
  }
  finally {
    writer.close();
  }
}

Fixed version (ground truth):
private void saveColumnStatus() throws IOException {
  Path localColumnStatsPath=new Path(pathFinder.getLocalColumnStatsPath());
  log.info("String_Node_Str",localColumnStatsPath);
  if (HDFSUtils.getLocalFS().exists(localColumnStatsPath)) {
    HDFSUtils.getLocalFS().delete(localColumnStatsPath,true);
  }
  BufferedWriter writer=null;
  try {
    writer=ShifuFileUtils.getWriter(localColumnStatsPath.toString(),SourceType.LOCAL);
    writer.write("String_Node_Str" + "String_Node_Str" + "String_Node_Str");
    StringBuilder builder=new StringBuilder(500);
    for (    ColumnConfig columnConfig : columnConfigList) {
      builder.setLength(0);
      builder.append(modelConfig.getBasic().getName()).append(',');
      builder.append(columnConfig.getColumnFlag()).append(',');
      builder.append(columnConfig.getColumnName()).append(',');
      builder.append(columnConfig.getColumnNum()).append(',');
      builder.append(columnConfig.getIv()).append(',');
      builder.append(columnConfig.getKs()).append(',');
      builder.append(columnConfig.getColumnStats().getMax()).append(',');
      builder.append(columnConfig.getColumnStats().getMean()).append(',');
      builder.append(columnConfig.getColumnStats().getMedian()).append(',');
      builder.append(columnConfig.getColumnStats().getMin()).append(',');
      builder.append(columnConfig.getColumnStats().getMissingCount()).append(',');
      builder.append(columnConfig.getColumnStats().getMissingPercentage()).append(',');
      builder.append(columnConfig.getColumnStats().getStdDev()).append(',');
      builder.append(columnConfig.getColumnStats().getTotalCount()).append(',');
      builder.append(columnConfig.getColumnStats().getDistinctCount()).append(',');
      builder.append(columnConfig.getColumnStats().getWeightedIv()).append(',');
      builder.append(columnConfig.getColumnStats().getWeightedKs()).append(',');
      builder.append(columnConfig.getColumnStats().getWeightedWoe()).append(',');
      builder.append(columnConfig.getColumnStats().getWoe()).append(',');
      builder.append(columnConfig.getColumnStats().getSkewness()).append(',');
      builder.append(columnConfig.getColumnStats().getKurtosis()).append(',');
      builder.append(columnConfig.getColumnType()).append(',');
      builder.append(columnConfig.isFinalSelect()).append(',');
      builder.append(columnConfig.getPSI()).append(',');
      builder.append(StringUtils.join(columnConfig.getUnitStats(),'|')).append(',');
      builder.append(modelConfig.getBasic().getVersion()).append("String_Node_Str");
      writer.write(builder.toString());
    }
  }
  finally {
    writer.close();
  }
}