Program: 23160
Project: 23160
Buggy source:
private void addExpansionRowToTable(XhtmlNode t,ValueSetExpansionContainsComponent c,int i,boolean doLevel,boolean doSystem,boolean doDefinition,List<UsedConceptMap> maps,CodeSystem allCS,List<String> langs){
  XhtmlNode tr=t.tr();
  XhtmlNode td=tr.td();
  String tgt=makeAnchor(c.getSystem(),c.getCode());
  td.an(tgt);
  if (doLevel) {
    td.addText(Integer.toString(i));
    td=tr.td();
  }
  String s=Utilities.padLeft("String_Node_Str",'\u00A0',i * 2);
  td.addText(s);
  addCodeToTable(c.getAbstract(),c.getSystem(),c.getCode(),c.getDisplay(),td);
  if (doSystem) {
    td=tr.td();
    td.addText(c.getSystem());
  }
  td=tr.td();
  if (c.hasDisplayElement())   td.addText(c.getDisplay());
  if (doDefinition) {
    CodeSystem cs=allCS;
    if (cs == null)     cs=context.fetchCodeSystem(c.getSystem());
    td=tr.td();
    if (cs != null)     td.addText(CodeSystemUtilities.getCodeDefinition(cs,c.getCode()));
  }
  for (  UsedConceptMap m : maps) {
    td=tr.td();
    List<TargetElementComponentWrapper> mappings=findMappingsForCode(c.getCode(),m.getMap());
    boolean first=true;
    for (    TargetElementComponentWrapper mapping : mappings) {
      if (!first)       td.br();
      first=false;
      XhtmlNode span=td.span(null,mapping.comp.getEquivalence().toString());
      span.addText(getCharForEquivalence(mapping.comp));
      addRefToCode(td,mapping.group.getTarget(),m.getLink(),mapping.comp.getCode());
      if (!Utilities.noString(mapping.comp.getComment()))       td.i().tx("String_Node_Str" + mapping.comp.getComment() + "String_Node_Str");
    }
  }
  for (  Extension ext : c.getExtension()) {
    if (ToolingExtensions.EXT_TRANSLATION.equals(ext.getUrl())) {
      String lang=ToolingExtensions.readStringExtension(ext,"String_Node_Str");
      if (!Utilities.noString(lang) && !langs.contains(lang))       langs.add(lang);
    }
  }
  for (  ValueSetExpansionContainsComponent cc : c.getContains()) {
    addExpansionRowToTable(t,cc,i + 1,doLevel,doSystem,doDefinition,maps,allCS,langs);
  }
}

Fixed version (ground truth):
private void addExpansionRowToTable(XhtmlNode t,ValueSetExpansionContainsComponent c,int i,boolean doLevel,boolean doSystem,boolean doDefinition,List<UsedConceptMap> maps,CodeSystem allCS,List<String> langs){
  XhtmlNode tr=t.tr();
  XhtmlNode td=tr.td();
  String tgt=makeAnchor(c.getSystem(),c.getCode());
  td.an(tgt);
  if (doLevel) {
    td.addText(Integer.toString(i));
    td=tr.td();
  }
  String s=Utilities.padLeft("String_Node_Str",'\u00A0',i * 2);
  td.attribute("String_Node_Str","String_Node_Str").addText(s);
  addCodeToTable(c.getAbstract(),c.getSystem(),c.getCode(),c.getDisplay(),td);
  if (doSystem) {
    td=tr.td();
    td.addText(c.getSystem());
  }
  td=tr.td();
  if (c.hasDisplayElement())   td.addText(c.getDisplay());
  if (doDefinition) {
    CodeSystem cs=allCS;
    if (cs == null)     cs=context.fetchCodeSystem(c.getSystem());
    td=tr.td();
    if (cs != null)     td.addText(CodeSystemUtilities.getCodeDefinition(cs,c.getCode()));
  }
  for (  UsedConceptMap m : maps) {
    td=tr.td();
    List<TargetElementComponentWrapper> mappings=findMappingsForCode(c.getCode(),m.getMap());
    boolean first=true;
    for (    TargetElementComponentWrapper mapping : mappings) {
      if (!first)       td.br();
      first=false;
      XhtmlNode span=td.span(null,mapping.comp.getEquivalence().toString());
      span.addText(getCharForEquivalence(mapping.comp));
      addRefToCode(td,mapping.group.getTarget(),m.getLink(),mapping.comp.getCode());
      if (!Utilities.noString(mapping.comp.getComment()))       td.i().tx("String_Node_Str" + mapping.comp.getComment() + "String_Node_Str");
    }
  }
  for (  Extension ext : c.getExtension()) {
    if (ToolingExtensions.EXT_TRANSLATION.equals(ext.getUrl())) {
      String lang=ToolingExtensions.readStringExtension(ext,"String_Node_Str");
      if (!Utilities.noString(lang) && !langs.contains(lang))       langs.add(lang);
    }
  }
  for (  ValueSetExpansionContainsComponent cc : c.getContains()) {
    addExpansionRowToTable(t,cc,i + 1,doLevel,doSystem,doDefinition,maps,allCS,langs);
  }
}