Program: 122416
Project: 122416
Buggy source:
@SuppressWarnings("String_Node_Str") private INode addVParallelizeBetween(INode sourceNode,INode targetNode,IConnection connection,IProcess process,List<? extends IElementParameter> parameters){
  IComponent tempNode=ComponentsFactoryProvider.getInstance().get("String_Node_Str");
  if (tempNode == null) {
    return targetNode;
  }
  DataNode parallelizeNode=null;
  boolean alreadyHave=false;
  String key="String_Node_Str" + sourceNode.getUniqueName();
  if (parallCheckMap.get(key) != null) {
    parallelizeNode=(DataNode)parallCheckMap.get(key);
    alreadyHave=true;
  }
 else {
    String uniqueName="String_Node_Str" + connection.getUniqueName();
    parallelizeNode=new DataNode(ComponentsFactoryProvider.getInstance().get("String_Node_Str"),uniqueName);
    parallelizeNode.setActivate(connection.isActivate());
    parallelizeNode.setStart(false);
    parallelizeNode.setDesignSubjobStartNode(sourceNode.getDesignSubjobStartNode());
    IMetadataTable newMetadata=connection.getMetadataTable().clone();
    newMetadata.setTableName(uniqueName);
    parallelizeNode.getMetadataList().remove(0);
    parallelizeNode.getMetadataList().add(newMetadata);
    parallelizeNode.setSubProcessStart(true);
    parallelizeNode.setProcess(process);
    List<IConnection> outgoingConnections=new ArrayList<IConnection>();
    List<IConnection> incomingConnections=new ArrayList<IConnection>();
    parallelizeNode.setIncomingConnections(incomingConnections);
    parallelizeNode.setOutgoingConnections(outgoingConnections);
    addDataNode(parallelizeNode);
    parallCheckMap.put(key,parallelizeNode);
  }
  if (!alreadyHave) {
    DataConnection dataConnec=new DataConnection();
    dataConnec.setActivate(connection.isActivate());
    dataConnec.setLineStyle(EConnectionType.RUN_AFTER);
    dataConnec.setTraceConnection(connection.isTraceConnection());
    dataConnec.setTracesCondition(connection.getTracesCondition());
    dataConnec.setEnabledTraceColumns(connection.getEnabledTraceColumns());
    dataConnec.setMonitorConnection(connection.isMonitorConnection());
    if (!sourceNode.getMetadataList().isEmpty()) {
      dataConnec.setMetadataTable(sourceNode.getMetadataList().get(0));
    }
    dataConnec.setName("String_Node_Str" + sourceNode.getUniqueName());
    dataConnec.setConnectorName(EConnectionType.RUN_AFTER.getName());
    dataConnec.setSource(sourceNode);
    dataConnec.setTarget(parallelizeNode);
    targetNode.setStart(false);
    ((List<IConnection>)parallelizeNode.getIncomingConnections()).add(dataConnec);
    ((List<IConnection>)sourceNode.getOutgoingConnections()).add(dataConnec);
  }
  DataConnection dataConnec=new DataConnection();
  dataConnec.setActivate(connection.isActivate());
  dataConnec.setLineStyle(EConnectionType.PARALLELIZE);
  IElementParameter param2=new ElementParameter(dataConnec);
  param2.setName(EParameterName.TRACES_CONNECTION_ENABLE.getName());
  param2.setDisplayName(EParameterName.TRACES_CONNECTION_ENABLE.getDisplayName());
  param2.setFieldType(EParameterFieldType.CHECK);
  param2.setValue(Boolean.TRUE);
  param2.setCategory(EComponentCategory.ADVANCED);
  param2.setShow(false);
  param2.setNumRow(1);
  ((List<IElementParameter>)dataConnec.getElementParameters()).add(param2);
  dataConnec.setTraceConnection(connection.isTraceConnection());
  dataConnec.setMonitorConnection(connection.isMonitorConnection());
  dataConnec.setTracesCondition(connection.getTracesCondition());
  dataConnec.setEnabledTraceColumns(connection.getEnabledTraceColumns());
  dataConnec.setMetadataTable(connection.getMetadataTable());
  dataConnec.setName("String_Node_Str" + connection.getUniqueName());
  dataConnec.setSource(parallelizeNode);
  dataConnec.setTarget(targetNode);
  dataConnec.setCondition(connection.getCondition());
  dataConnec.setConnectorName(EConnectionType.PARALLELIZE.getName());
  dataConnec.setInputId(connection.getInputId());
  targetNode.setStart(false);
  ((List<IConnection>)targetNode.getIncomingConnections()).add(dataConnec);
  ((List<IConnection>)parallelizeNode.getOutgoingConnections()).add(dataConnec);
  return parallelizeNode;
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") private INode addVParallelizeBetween(INode sourceNode,INode targetNode,IConnection connection,IProcess process,List<? extends IElementParameter> parameters){
  IComponent tempNode=ComponentsFactoryProvider.getInstance().get("String_Node_Str");
  if (tempNode == null) {
    return targetNode;
  }
  DataNode parallelizeNode=null;
  boolean alreadyHave=false;
  String key="String_Node_Str" + sourceNode.getUniqueName();
  if (parallCheckMap.get(key) != null) {
    parallelizeNode=(DataNode)parallCheckMap.get(key);
    alreadyHave=true;
  }
 else {
    String uniqueName="String_Node_Str" + connection.getUniqueName();
    parallelizeNode=new DataNode(ComponentsFactoryProvider.getInstance().get("String_Node_Str"),uniqueName);
    parallelizeNode.setActivate(connection.isActivate());
    parallelizeNode.setStart(false);
    parallelizeNode.setDesignSubjobStartNode(sourceNode.getDesignSubjobStartNode());
    IMetadataTable newMetadata=connection.getMetadataTable().clone();
    newMetadata.setTableName(uniqueName);
    parallelizeNode.getMetadataList().remove(0);
    parallelizeNode.getMetadataList().add(newMetadata);
    parallelizeNode.setSubProcessStart(true);
    parallelizeNode.setProcess(process);
    IElementParameter dieOnErrorParameters=parallelizeNode.getElementParameter("String_Node_Str");
    if (dieOnErrorParameters == null) {
      dieOnErrorParameters=new ElementParameter(parallelizeNode);
      dieOnErrorParameters.setName("String_Node_Str");
      dieOnErrorParameters.setFieldType(EParameterFieldType.CHECK);
      ((List<IElementParameter>)parallelizeNode.getElementParameters()).add(dieOnErrorParameters);
    }
    dieOnErrorParameters.setValue(Boolean.TRUE);
    List<IConnection> outgoingConnections=new ArrayList<IConnection>();
    List<IConnection> incomingConnections=new ArrayList<IConnection>();
    parallelizeNode.setIncomingConnections(incomingConnections);
    parallelizeNode.setOutgoingConnections(outgoingConnections);
    addDataNode(parallelizeNode);
    parallCheckMap.put(key,parallelizeNode);
  }
  if (!alreadyHave) {
    DataConnection dataConnec=new DataConnection();
    dataConnec.setActivate(connection.isActivate());
    dataConnec.setLineStyle(EConnectionType.RUN_AFTER);
    dataConnec.setTraceConnection(connection.isTraceConnection());
    dataConnec.setTracesCondition(connection.getTracesCondition());
    dataConnec.setEnabledTraceColumns(connection.getEnabledTraceColumns());
    dataConnec.setMonitorConnection(connection.isMonitorConnection());
    if (!sourceNode.getMetadataList().isEmpty()) {
      dataConnec.setMetadataTable(sourceNode.getMetadataList().get(0));
    }
    dataConnec.setName("String_Node_Str" + sourceNode.getUniqueName());
    dataConnec.setConnectorName(EConnectionType.RUN_AFTER.getName());
    dataConnec.setSource(sourceNode);
    dataConnec.setTarget(parallelizeNode);
    targetNode.setStart(false);
    ((List<IConnection>)parallelizeNode.getIncomingConnections()).add(dataConnec);
    ((List<IConnection>)sourceNode.getOutgoingConnections()).add(dataConnec);
  }
  DataConnection dataConnec=new DataConnection();
  dataConnec.setActivate(connection.isActivate());
  dataConnec.setLineStyle(EConnectionType.PARALLELIZE);
  IElementParameter param2=new ElementParameter(dataConnec);
  param2.setName(EParameterName.TRACES_CONNECTION_ENABLE.getName());
  param2.setDisplayName(EParameterName.TRACES_CONNECTION_ENABLE.getDisplayName());
  param2.setFieldType(EParameterFieldType.CHECK);
  param2.setValue(Boolean.TRUE);
  param2.setCategory(EComponentCategory.ADVANCED);
  param2.setShow(false);
  param2.setNumRow(1);
  ((List<IElementParameter>)dataConnec.getElementParameters()).add(param2);
  dataConnec.setTraceConnection(connection.isTraceConnection());
  dataConnec.setMonitorConnection(connection.isMonitorConnection());
  dataConnec.setTracesCondition(connection.getTracesCondition());
  dataConnec.setEnabledTraceColumns(connection.getEnabledTraceColumns());
  dataConnec.setMetadataTable(connection.getMetadataTable());
  dataConnec.setName("String_Node_Str" + connection.getUniqueName());
  dataConnec.setSource(parallelizeNode);
  dataConnec.setTarget(targetNode);
  dataConnec.setCondition(connection.getCondition());
  dataConnec.setConnectorName(EConnectionType.PARALLELIZE.getName());
  dataConnec.setInputId(connection.getInputId());
  targetNode.setStart(false);
  ((List<IConnection>)targetNode.getIncomingConnections()).add(dataConnec);
  ((List<IConnection>)parallelizeNode.getOutgoingConnections()).add(dataConnec);
  return parallelizeNode;
}