Program: 88650
Project: 88650
Buggy source:
@SuppressWarnings("String_Node_Str") public static void fillElement(Element e,JSONObject elementInfo,Stereotype view,Stereotype viewpoint){
  if (e instanceof Package) {
    elementInfo.put("String_Node_Str","String_Node_Str");
  }
 else   if (e instanceof Property) {
    elementInfo.put("String_Node_Str","String_Node_Str");
    elementInfo.put("String_Node_Str",((Property)e).isDerived());
    elementInfo.put("String_Node_Str",false);
    ValueSpecification vs=((Property)e).getDefaultValue();
    if (vs != null) {
      elementInfo.put("String_Node_Str",makeJsonArrayOfIDs(Collections.singletonList(vs)));
    }
    Type type=((Property)e).getType();
    if (type != null) {
      elementInfo.put("String_Node_Str","String_Node_Str" + type.getID());
    }
 else     elementInfo.put("String_Node_Str","String_Node_Str");
  }
 else   if (e instanceof Slot) {
    elementInfo.put("String_Node_Str","String_Node_Str");
    elementInfo.put("String_Node_Str",false);
    elementInfo.put("String_Node_Str",true);
    if (((Slot)e).getDefiningFeature().getID().equals("String_Node_Str"))     elementInfo.put("String_Node_Str",true);
    List<ValueSpecification> vsl=((Slot)e).getValue();
    if (vsl != null && vsl.size() > 0) {
      elementInfo.put("String_Node_Str",makeJsonArrayOfIDs(vsl));
    }
    Element type=((Slot)e).getDefiningFeature();
    if (type != null) {
      elementInfo.put("String_Node_Str","String_Node_Str" + type.getID());
    }
  }
 else   if (e instanceof Dependency) {
    if (StereotypesHelper.hasStereotypeOrDerived(e,Utils.getConformsStereotype()))     elementInfo.put("String_Node_Str","String_Node_Str");
 else     if (StereotypesHelper.hasStereotypeOrDerived(e,DocGen3Profile.queriesStereotype))     elementInfo.put("String_Node_Str","String_Node_Str");
 else     elementInfo.put("String_Node_Str","String_Node_Str");
  }
 else   if (e instanceof Generalization) {
    if (StereotypesHelper.hasStereotypeOrDerived(e,Utils.getConformsStereotype()))     elementInfo.put("String_Node_Str","String_Node_Str");
 else     if (StereotypesHelper.hasStereotypeOrDerived(e,DocGen3Profile.queriesStereotype))     elementInfo.put("String_Node_Str","String_Node_Str");
 else     elementInfo.put("String_Node_Str","String_Node_Str");
  }
 else   if (e instanceof DirectedRelationship) {
    elementInfo.put("String_Node_Str","String_Node_Str");
  }
 else   if (e instanceof Comment) {
    elementInfo.put("String_Node_Str","String_Node_Str");
    elementInfo.put("String_Node_Str",Utils.stripHtmlWrapper(((Comment)e).getBody()));
    elementInfo.put("String_Node_Str",makeJsonArrayOfIDs(((Comment)e).getAnnotatedElement()));
  }
 else   if (e instanceof Operation) {
    elementInfo.put("String_Node_Str","String_Node_Str");
    List<Parameter> vsl=((Operation)e).getOwnedParameter();
    if (vsl != null && vsl.size() > 0) {
      elementInfo.put("String_Node_Str",makeJsonArrayOfIDs(vsl));
    }
  }
 else   if (e instanceof ValueSpecification) {
    fillValueSpecification((ValueSpecification)e,elementInfo,view,viewpoint);
  }
 else   if (e instanceof Constraint) {
    elementInfo.put("String_Node_Str","String_Node_Str");
    ValueSpecification spec=((Constraint)e).getSpecification();
    if (spec != null)     elementInfo.put("String_Node_Str",spec.getID());
  }
 else   if (e instanceof InstanceSpecification) {
    elementInfo.put("String_Node_Str","String_Node_Str");
    ValueSpecification spec=((InstanceSpecification)e).getSpecification();
    if (spec != null)     elementInfo.put("String_Node_Str",spec.getID());
  }
 else   if (e instanceof Parameter) {
    Parameter p=(Parameter)e;
    elementInfo.put("String_Node_Str","String_Node_Str");
    if (p.getDirection() != null)     elementInfo.put("String_Node_Str",p.getDirection());
    if (p.getType() != null)     elementInfo.put("String_Node_Str",p.getType().getID());
    ValueSpecification defaultValue=p.getDefaultValue();
    if (defaultValue != null) {
      elementInfo.put("String_Node_Str",defaultValue.getID());
    }
  }
 else {
    elementInfo.put("String_Node_Str","String_Node_Str");
  }
  if (e instanceof DirectedRelationship) {
    Element client=ModelHelper.getClientElement(e);
    Element supplier=ModelHelper.getSupplierElement(e);
    elementInfo.put("String_Node_Str",client.getID());
    elementInfo.put("String_Node_Str",supplier.getID());
  }
  if (viewpoint != null && StereotypesHelper.hasStereotypeOrDerived(e,viewpoint))   elementInfo.put("String_Node_Str","String_Node_Str");
  if (e instanceof NamedElement) {
    elementInfo.put("String_Node_Str",((NamedElement)e).getName());
  }
 else   elementInfo.put("String_Node_Str","String_Node_Str");
  elementInfo.put("String_Node_Str",Utils.stripHtmlWrapper(ModelHelper.getComment(e)));
  if (e.getOwner() == null || e.getOwner() == Application.getInstance().getProject().getModel())   elementInfo.put("String_Node_Str","String_Node_Str");
 else   elementInfo.put("String_Node_Str","String_Node_Str" + e.getOwner().getID());
  elementInfo.put("String_Node_Str",getElementID(e));
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public static void fillElement(Element e,JSONObject elementInfo,Stereotype view,Stereotype viewpoint){
  if (e instanceof Package) {
    elementInfo.put("String_Node_Str","String_Node_Str");
  }
 else   if (e instanceof Property) {
    elementInfo.put("String_Node_Str","String_Node_Str");
    elementInfo.put("String_Node_Str",((Property)e).isDerived());
    elementInfo.put("String_Node_Str",false);
    ValueSpecification vs=((Property)e).getDefaultValue();
    if (vs != null) {
      elementInfo.put("String_Node_Str",makeJsonArrayOfIDs(Collections.singletonList(vs)));
    }
    Type type=((Property)e).getType();
    if (type != null) {
      elementInfo.put("String_Node_Str","String_Node_Str" + type.getID());
    }
 else     elementInfo.put("String_Node_Str","String_Node_Str");
  }
 else   if (e instanceof Slot) {
    elementInfo.put("String_Node_Str","String_Node_Str");
    elementInfo.put("String_Node_Str",false);
    elementInfo.put("String_Node_Str",true);
    if (((Slot)e).getDefiningFeature().getID().equals("String_Node_Str"))     elementInfo.put("String_Node_Str",true);
    List<ValueSpecification> vsl=((Slot)e).getValue();
    if (vsl != null && vsl.size() > 0) {
      elementInfo.put("String_Node_Str",makeJsonArrayOfIDs(vsl));
    }
    Element type=((Slot)e).getDefiningFeature();
    if (type != null) {
      elementInfo.put("String_Node_Str","String_Node_Str" + type.getID());
    }
  }
 else   if (e instanceof Dependency) {
    if (StereotypesHelper.hasStereotypeOrDerived(e,DocGen3Profile.conformStereotype))     elementInfo.put("String_Node_Str","String_Node_Str");
 else     if (StereotypesHelper.hasStereotypeOrDerived(e,DocGen3Profile.queriesStereotype))     elementInfo.put("String_Node_Str","String_Node_Str");
 else     elementInfo.put("String_Node_Str","String_Node_Str");
  }
 else   if (e instanceof Generalization) {
    boolean isConform=StereotypesHelper.hasStereotypeOrDerived(e,DocGen3Profile.conformStereotype);
    if (isConform)     elementInfo.put("String_Node_Str","String_Node_Str");
 else     if (StereotypesHelper.hasStereotypeOrDerived(e,DocGen3Profile.queriesStereotype))     elementInfo.put("String_Node_Str","String_Node_Str");
 else     elementInfo.put("String_Node_Str","String_Node_Str");
  }
 else   if (e instanceof DirectedRelationship) {
    elementInfo.put("String_Node_Str","String_Node_Str");
  }
 else   if (e instanceof Comment) {
    elementInfo.put("String_Node_Str","String_Node_Str");
    elementInfo.put("String_Node_Str",Utils.stripHtmlWrapper(((Comment)e).getBody()));
    elementInfo.put("String_Node_Str",makeJsonArrayOfIDs(((Comment)e).getAnnotatedElement()));
  }
 else   if (e instanceof Operation) {
    elementInfo.put("String_Node_Str","String_Node_Str");
    List<Parameter> vsl=((Operation)e).getOwnedParameter();
    if (vsl != null && vsl.size() > 0) {
      elementInfo.put("String_Node_Str",makeJsonArrayOfIDs(vsl));
    }
  }
 else   if (e instanceof ValueSpecification) {
    fillValueSpecification((ValueSpecification)e,elementInfo,view,viewpoint);
  }
 else   if (e instanceof Constraint) {
    elementInfo.put("String_Node_Str","String_Node_Str");
    ValueSpecification spec=((Constraint)e).getSpecification();
    if (spec != null)     elementInfo.put("String_Node_Str",spec.getID());
  }
 else   if (e instanceof InstanceSpecification) {
    elementInfo.put("String_Node_Str","String_Node_Str");
    ValueSpecification spec=((InstanceSpecification)e).getSpecification();
    if (spec != null)     elementInfo.put("String_Node_Str",spec.getID());
  }
 else   if (e instanceof Parameter) {
    Parameter p=(Parameter)e;
    elementInfo.put("String_Node_Str","String_Node_Str");
    if (p.getDirection() != null)     elementInfo.put("String_Node_Str",p.getDirection());
    if (p.getType() != null)     elementInfo.put("String_Node_Str",p.getType().getID());
    ValueSpecification defaultValue=p.getDefaultValue();
    if (defaultValue != null) {
      elementInfo.put("String_Node_Str",defaultValue.getID());
    }
  }
 else {
    elementInfo.put("String_Node_Str","String_Node_Str");
  }
  if (e instanceof DirectedRelationship) {
    Element client=ModelHelper.getClientElement(e);
    Element supplier=ModelHelper.getSupplierElement(e);
    elementInfo.put("String_Node_Str",client.getID());
    elementInfo.put("String_Node_Str",supplier.getID());
  }
  if (viewpoint != null && StereotypesHelper.hasStereotypeOrDerived(e,viewpoint))   elementInfo.put("String_Node_Str","String_Node_Str");
  if (e instanceof NamedElement) {
    elementInfo.put("String_Node_Str",((NamedElement)e).getName());
  }
 else   elementInfo.put("String_Node_Str","String_Node_Str");
  elementInfo.put("String_Node_Str",Utils.stripHtmlWrapper(ModelHelper.getComment(e)));
  if (e.getOwner() == null || e.getOwner() == Application.getInstance().getProject().getModel())   elementInfo.put("String_Node_Str","String_Node_Str");
 else   elementInfo.put("String_Node_Str","String_Node_Str" + e.getOwner().getID());
  elementInfo.put("String_Node_Str",getElementID(e));
}