Program: 28066
Project: 28066
Buggy source:
@Handler(id="String_Node_Str",input={@HandlerInput(name="String_Node_Str",type=String.class,required=true)},output={@HandlerOutput(name="String_Node_Str",type=List.class)}) public static void getTargetListInfo(HandlerContext handlerCtx){
  String applicationName=(String)handlerCtx.getInputValue("String_Node_Str");
  String prefix=(String)GuiUtil.getSessionValue("String_Node_Str");
  List<String> clusters=TargetUtil.getClusters();
  List<String> standalone=TargetUtil.getStandaloneInstances();
  List<String> deploymentGroup=TargetUtil.getDeploymentGroups();
  standalone.add("String_Node_Str");
  List<String> targetList=DeployUtil.getApplicationTarget(applicationName,"String_Node_Str");
  List<HashMap> result=new ArrayList<>();
  Map<String,Object> attributes=null;
  String endpoint="String_Node_Str";
  List<String> instancesInDeploymentGroup=getInstancesInDeploymentGroup(targetList);
  for (  String oneTarget : targetList) {
    Boolean addToResult=false;
    HashMap<String,Object> oneRow=new HashMap<>();
    if (clusters.contains(oneTarget)) {
      endpoint=prefix + CLUSTER + oneTarget+ APPLICATION_REF+ applicationName;
      attributes=RestUtil.getAttributesMap(endpoint);
      addToResult=true;
    }
 else     if (standalone.contains(oneTarget) && !instancesInDeploymentGroup.contains(oneTarget)) {
      endpoint=prefix + SERVER + oneTarget+ APPLICATION_REF+ applicationName;
      attributes=RestUtil.getAttributesMap(endpoint);
      addToResult=true;
    }
 else     if (deploymentGroup.contains(oneTarget)) {
      endpoint=prefix + DEPLOYMENT_GROUP + oneTarget+ APPLICATION_REF+ applicationName;
      attributes=RestUtil.getAttributesMap(endpoint);
      addToResult=true;
    }
    if (addToResult) {
      oneRow.put("String_Node_Str",applicationName);
      oneRow.put("String_Node_Str",false);
      oneRow.put("String_Node_Str",endpoint.replaceAll("String_Node_Str","String_Node_Str"));
      oneRow.put("String_Node_Str",oneTarget);
      oneRow.put("String_Node_Str",attributes.get("String_Node_Str"));
      oneRow.put("String_Node_Str",attributes.get("String_Node_Str"));
      result.add(oneRow);
    }
  }
  handlerCtx.setOutputValue("String_Node_Str",result);
}

Fixed version (ground truth):
@Handler(id="String_Node_Str",input={@HandlerInput(name="String_Node_Str",type=String.class,required=true)},output={@HandlerOutput(name="String_Node_Str",type=List.class)}) public static void getTargetListInfo(HandlerContext handlerCtx){
  String applicationName=(String)handlerCtx.getInputValue("String_Node_Str");
  String prefix=(String)GuiUtil.getSessionValue(REST_URL);
  List<String> clusters=TargetUtil.getClusters();
  List<String> standalone=TargetUtil.getStandaloneInstances();
  List<String> deploymentGroup=TargetUtil.getDeploymentGroups();
  standalone.add("String_Node_Str");
  List<String> targetList=DeployUtil.getApplicationTarget(applicationName,"String_Node_Str");
  List<HashMap> result=new ArrayList<>();
  Map<String,Object> attributes=null;
  String endpoint="String_Node_Str";
  List<String> instancesInDeploymentGroup=getInstancesInDeploymentGroup(targetList);
  for (  String oneTarget : targetList) {
    Boolean addToResult=false;
    HashMap<String,Object> oneRow=new HashMap<>();
    if (clusters.contains(oneTarget)) {
      endpoint=prefix + CLUSTER + oneTarget+ APPLICATION_REF+ applicationName;
      attributes=RestUtil.getAttributesMap(endpoint);
      addToResult=true;
    }
 else     if (standalone.contains(oneTarget) && !instancesInDeploymentGroup.contains(oneTarget)) {
      endpoint=prefix + SERVER + oneTarget+ APPLICATION_REF+ applicationName;
      attributes=RestUtil.getAttributesMap(endpoint);
      addToResult=true;
    }
 else     if (deploymentGroup.contains(oneTarget)) {
      endpoint=prefix + DEPLOYMENT_GROUP + oneTarget+ APPLICATION_REF+ applicationName;
      attributes=RestUtil.getAttributesMap(endpoint);
      addToResult=true;
    }
    if (addToResult) {
      oneRow.put("String_Node_Str",applicationName);
      oneRow.put("String_Node_Str",false);
      oneRow.put("String_Node_Str",endpoint.replaceAll("String_Node_Str","String_Node_Str"));
      oneRow.put("String_Node_Str",oneTarget);
      oneRow.put("String_Node_Str",attributes.get("String_Node_Str"));
      oneRow.put("String_Node_Str",attributes.get("String_Node_Str"));
      result.add(oneRow);
    }
  }
  handlerCtx.setOutputValue("String_Node_Str",result);
}