Program: 93606
Project: 93606
Buggy source:
/** 
 * {@inheritDoc}
 * @see org.eclipse.emf.compare.provider.IItemStyledLabelProvider#getStyledText(java.lang.Object)
 */
public IStyledString.IComposedStyledString getStyledText(Object object){
  final UMLDiff umlDiff=(UMLDiff)object;
  Stereotype stereotype=((StereotypeApplicationChange)umlDiff).getStereotype();
  if (stereotype == null) {
    stereotype=UMLUtil.getStereotype(umlDiff.getDiscriminant());
  }
  final ComposedStyledString stereotypeText=new ComposedStyledString();
  if (stereotype != null) {
    stereotypeText.append(AdapterFactoryUtil.getText(getRootAdapterFactory(),stereotype) + ' ');
  }
 else   if (umlDiff.getDiscriminant() instanceof NamedElement) {
    stereotypeText.append("String_Node_Str" + ((NamedElement)umlDiff.getDiscriminant()).getName() + ' ');
  }
 else {
    stereotypeText.append("String_Node_Str");
  }
  final Match targetMatch=umlDiff.getMatch();
  final EObject target=findNonNullSide(targetMatch);
  String targetLabel=null;
  final String action;
switch (umlDiff.getKind()) {
case ADD:
    action="String_Node_Str";
  break;
case DELETE:
action="String_Node_Str";
break;
case CHANGE:
action="String_Node_Str";
break;
case MOVE:
action="String_Node_Str";
break;
default :
throw new IllegalStateException("String_Node_Str" + DifferenceKind.class.getSimpleName() + "String_Node_Str"+ umlDiff.getKind());
}
if (target != null) {
targetLabel+=AdapterFactoryUtil.getText(getRootAdapterFactory(),target);
}
return stereotypeText.append("String_Node_Str" + targetLabel + "String_Node_Str"+ action+ "String_Node_Str",Style.DECORATIONS_STYLER);
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 * @see org.eclipse.emf.compare.provider.IItemStyledLabelProvider#getStyledText(java.lang.Object)
 */
public IStyledString.IComposedStyledString getStyledText(Object object){
  final UMLDiff umlDiff=(UMLDiff)object;
  Stereotype stereotype=((StereotypeApplicationChange)umlDiff).getStereotype();
  if (stereotype == null) {
    stereotype=UMLUtil.getStereotype(umlDiff.getDiscriminant());
  }
  final ComposedStyledString stereotypeText=new ComposedStyledString();
  if (stereotype != null) {
    stereotypeText.append(AdapterFactoryUtil.getText(getRootAdapterFactory(),stereotype) + ' ');
  }
 else   if (umlDiff.getDiscriminant() instanceof NamedElement) {
    stereotypeText.append("String_Node_Str" + ((NamedElement)umlDiff.getDiscriminant()).getName() + ' ');
  }
 else {
    stereotypeText.append("String_Node_Str");
  }
  final Match targetMatch=umlDiff.getMatch();
  final EObject target=findNonNullSide(targetMatch);
  String targetLabel=null;
  final String action;
switch (umlDiff.getKind()) {
case ADD:
    action="String_Node_Str";
  break;
case DELETE:
action="String_Node_Str";
break;
case CHANGE:
action="String_Node_Str";
break;
case MOVE:
action="String_Node_Str";
break;
default :
throw new IllegalStateException("String_Node_Str" + DifferenceKind.class.getSimpleName() + "String_Node_Str"+ umlDiff.getKind());
}
if (target != null) {
targetLabel+=AdapterFactoryUtil.getText(getRootAdapterFactory(),target);
}
return stereotypeText.append("String_Node_Str" + action + "String_Node_Str",Style.DECORATIONS_STYLER);
}