Program: 35683
Project: 35683
Buggy source:
/** 
 * Adds an prerequisite row.
 * @param prerequisite The prerequisite. Must not be <code>null</code>.
 */
private void addPrerequisite(final PrerequisiteDTO prerequisite){
  if (prerequisite == null) {
    throw new NullPointerException("String_Node_Str");
  }
  final LogFrameGroupDTO group=prerequisite.getGroup();
  @SuppressWarnings("String_Node_Str") RowsGroup<LogFrameGroupDTO> g=(RowsGroup<LogFrameGroupDTO>)prerequisitesView.getGroup(group.getClientSideId());
  if (g == null) {
    g=addPrerequisitesGroup(group);
  }
  final StringBuilder sb=new StringBuilder();
  sb.append(I18N.CONSTANTS.logFramePrerequisitesCode());
  sb.append("String_Node_Str");
  sb.append(prerequisitesPolicy.getCode(prerequisite.getCode(),prerequisite));
  prerequisite.setLabel(sb.toString());
  if (prerequisite.getPosition() == null) {
    prerequisite.setPosition(g.getRowsCount() + 1);
  }
  prerequisitesView.insertRow(prerequisite.getPosition(),group.getClientSideId(),new Row<PrerequisiteDTO>(prerequisite){
    @Override public boolean isSimilar(    int column,    PrerequisiteDTO userObject,    PrerequisiteDTO other){
      return false;
    }
    @Override public Widget getWidgetAt(    int column,    final PrerequisiteDTO userObject){
switch (column) {
case 0:
        final Label codeLabel=new Label();
      codeLabel.addStyleName(CSS_CODE_LABEL_STYLE_NAME);
    if (userObject != null) {
      codeLabel.setText(userObject.getLabel());
    }
  final Grid grid=new Grid(1,2);
grid.setCellPadding(0);
grid.setCellSpacing(0);
grid.setWidget(0,0,codeLabel);
if (!readOnly) {
grid.setWidget(0,1,buildPrerequisiteMenu(this,codeLabel));
}
return grid;
case 5:
final TextArea contentTextBox=new TextArea();
contentTextBox.setWidth("String_Node_Str");
contentTextBox.setHeight("String_Node_Str");
contentTextBox.setVisibleLines(2);
contentTextBox.addStyleName("String_Node_Str");
contentTextBox.setEnabled(!readOnly);
if (userObject != null) {
contentTextBox.setText(userObject.getContent());
}
contentTextBox.addChangeHandler(new ChangeHandler(){
@Override public void onChange(ChangeEvent e){
userObject.setContent(contentTextBox.getText());
fireLogFrameEdited();
}
}
);
return contentTextBox;
default :
return null;
}
}
@Override public int getId(PrerequisiteDTO userObject){
return userObject.getClientSideId();
}
}
);
fireLogFrameEdited();
}

Fixed version (ground truth):
/** 
 * Adds an prerequisite row.
 * @param prerequisite The prerequisite. Must not be <code>null</code>.
 */
private void addPrerequisite(final PrerequisiteDTO prerequisite){
  if (prerequisite == null) {
    throw new NullPointerException("String_Node_Str");
  }
  final LogFrameGroupDTO group=prerequisite.getGroup();
  @SuppressWarnings("String_Node_Str") RowsGroup<LogFrameGroupDTO> g=(RowsGroup<LogFrameGroupDTO>)prerequisitesView.getGroup(group.getClientSideId());
  if (g == null) {
    g=addPrerequisitesGroup(group);
  }
  final StringBuilder sb=new StringBuilder();
  sb.append(I18N.CONSTANTS.logFramePrerequisitesCode());
  sb.append("String_Node_Str");
  sb.append(prerequisite.getFormattedCode());
  prerequisite.setLabel(sb.toString());
  if (prerequisite.getPosition() == null) {
    prerequisite.setPosition(g.getRowsCount() + 1);
  }
  prerequisitesView.insertRow(prerequisite.getPosition(),group.getClientSideId(),new Row<PrerequisiteDTO>(prerequisite){
    @Override public boolean isSimilar(    int column,    PrerequisiteDTO userObject,    PrerequisiteDTO other){
      return false;
    }
    @Override public Widget getWidgetAt(    int column,    final PrerequisiteDTO userObject){
switch (column) {
case 0:
        final Label codeLabel=new Label();
      codeLabel.addStyleName(CSS_CODE_LABEL_STYLE_NAME);
    if (userObject != null) {
      codeLabel.setText(userObject.getLabel());
    }
  final Grid grid=new Grid(1,2);
grid.setCellPadding(0);
grid.setCellSpacing(0);
grid.setWidget(0,0,codeLabel);
if (!readOnly) {
grid.setWidget(0,1,buildPrerequisiteMenu(this,codeLabel));
}
return grid;
case 5:
final TextArea contentTextBox=new TextArea();
contentTextBox.setWidth("String_Node_Str");
contentTextBox.setHeight("String_Node_Str");
contentTextBox.setVisibleLines(2);
contentTextBox.addStyleName("String_Node_Str");
contentTextBox.setEnabled(!readOnly);
if (userObject != null) {
contentTextBox.setText(userObject.getContent());
}
contentTextBox.addChangeHandler(new ChangeHandler(){
@Override public void onChange(ChangeEvent e){
userObject.setContent(contentTextBox.getText());
fireLogFrameEdited();
}
}
);
return contentTextBox;
default :
return null;
}
}
@Override public int getId(PrerequisiteDTO userObject){
return userObject.getClientSideId();
}
}
);
fireLogFrameEdited();
}