Program: 48753
Project: 48753
Buggy source:
@CliCommand(value="String_Node_Str",help="String_Node_Str") public void setParam(@CliOption(key={"String_Node_Str"},mandatory=true,help="String_Node_Str") final String clusterName,@CliOption(key={"String_Node_Str"},mandatory=false,help="String_Node_Str") final String elasticityMode,@CliOption(key={"String_Node_Str"},mandatory=false,help="String_Node_Str") final Integer minComputeNodeNum,@CliOption(key={"String_Node_Str"},mandatory=false,help="String_Node_Str") final Integer maxComputeNodeNum,@CliOption(key={"String_Node_Str"},mandatory=false,help="String_Node_Str") final Integer targetComputeNodeNum,@CliOption(key={"String_Node_Str"},mandatory=false,help="String_Node_Str") final String ioShares){
  try {
    ClusterRead cluster=restClient.get(clusterName,false);
    if (cluster == null) {
      CommandsUtils.printCmdFailure(Constants.OUTPUT_OBJECT_CLUSTER,clusterName,Constants.OUTPUT_OP_SET_PARAM,Constants.OUTPUT_OP_RESULT_FAIL,"String_Node_Str" + clusterName + "String_Node_Str");
      return;
    }
    if (elasticityMode != null || minComputeNodeNum != null || maxComputeNodeNum != null || targetComputeNodeNum != null) {
      if (!cluster.validateSetManualElasticity()) {
        CommandsUtils.printCmdFailure(Constants.OUTPUT_OBJECT_CLUSTER,clusterName,Constants.OUTPUT_OP_SET_PARAM,Constants.OUTPUT_OP_RESULT_FAIL,Constants.PARAM_SHOULD_HAVE_COMPUTE_ONLY_GROUP);
        return;
      }
    }
 else     if (ioShares == null) {
      return;
    }
    ElasticityMode mode=null;
    if (elasticityMode != null) {
      try {
        mode=ElasticityMode.valueOf(elasticityMode.toUpperCase());
      }
 catch (      IllegalArgumentException e) {
        CommandsUtils.printCmdFailure(Constants.OUTPUT_OBJECT_CLUSTER,clusterName,Constants.OUTPUT_OP_SET_PARAM,Constants.OUTPUT_OP_RESULT_FAIL,Constants.INVALID_VALUE + "String_Node_Str" + elasticityMode);
        return;
      }
    }
    Boolean enableAuto=null;
    if (mode != null) {
      enableAuto=(mode == ElasticityMode.AUTO) ? true : false;
    }
    if (!cluster.validateSetParamParameters(targetComputeNodeNum,minComputeNodeNum,maxComputeNodeNum)) {
      return;
    }
    Priority ioPriority=null;
    if (ioShares != null) {
      try {
        ioPriority=Priority.valueOf(ioShares.toUpperCase());
      }
 catch (      IllegalArgumentException ex) {
        CommandsUtils.printCmdFailure(Constants.OUTPUT_OBJECT_CLUSTER,clusterName,Constants.OUTPUT_OP_SET_PARAM,Constants.OUTPUT_OP_RESULT_FAIL,Constants.INVALID_VALUE + "String_Node_Str" + "String_Node_Str"+ ioShares);
        return;
      }
    }
    ElasticityRequestBody requestBody=new ElasticityRequestBody();
    requestBody.setEnableAuto(enableAuto);
    if (mode != null) {
      if (mode == ElasticityMode.AUTO) {
        requestBody.setMinComputeNodeNum(minComputeNodeNum);
        requestBody.setMaxComputeNodeNum(maxComputeNodeNum);
      }
 else {
        requestBody.setActiveComputeNodeNum(targetComputeNodeNum);
      }
    }
 else {
      requestBody.setMinComputeNodeNum(minComputeNodeNum);
      requestBody.setMaxComputeNodeNum(maxComputeNodeNum);
      requestBody.setActiveComputeNodeNum(targetComputeNodeNum);
    }
    requestBody.setIoPriority(ioPriority);
    restClient.setParam(cluster,requestBody);
    CommandsUtils.printCmdSuccess(Constants.OUTPUT_OBJECT_CLUSTER,clusterName,Constants.OUTPUT_OP_RESULT_ADJUST);
    if (mode != null) {
      if (mode == ElasticityMode.AUTO) {
        if (targetComputeNodeNum != null) {
          System.out.println("String_Node_Str");
        }
      }
 else {
        if (minComputeNodeNum != null || maxComputeNodeNum != null) {
          System.out.println("String_Node_Str");
        }
      }
    }
  }
 catch (  CliRestException e) {
    if (e.getMessage() != null) {
      CommandsUtils.printCmdFailure(Constants.OUTPUT_OBJECT_CLUSTER,clusterName,Constants.OUTPUT_OP_SET_PARAM,Constants.OUTPUT_OP_RESULT_FAIL,e.getMessage());
    }
  }
}

Fixed version (ground truth):
@CliCommand(value="String_Node_Str",help="String_Node_Str") public void setParam(@CliOption(key={"String_Node_Str"},mandatory=true,help="String_Node_Str") final String clusterName,@CliOption(key={"String_Node_Str"},mandatory=false,help="String_Node_Str") final String elasticityMode,@CliOption(key={"String_Node_Str"},mandatory=false,help="String_Node_Str") final Integer minComputeNodeNum,@CliOption(key={"String_Node_Str"},mandatory=false,help="String_Node_Str") final Integer maxComputeNodeNum,@CliOption(key={"String_Node_Str"},mandatory=false,help="String_Node_Str") final Integer targetComputeNodeNum,@CliOption(key={"String_Node_Str"},mandatory=false,help="String_Node_Str") final String ioShares){
  try {
    ClusterRead cluster=restClient.get(clusterName,false);
    if (cluster == null) {
      CommandsUtils.printCmdFailure(Constants.OUTPUT_OBJECT_CLUSTER,clusterName,Constants.OUTPUT_OP_SET_PARAM,Constants.OUTPUT_OP_RESULT_FAIL,"String_Node_Str" + clusterName + "String_Node_Str");
      return;
    }
    if (elasticityMode != null || minComputeNodeNum != null || maxComputeNodeNum != null || targetComputeNodeNum != null) {
      if (!cluster.validateSetManualElasticity()) {
        CommandsUtils.printCmdFailure(Constants.OUTPUT_OBJECT_CLUSTER,clusterName,Constants.OUTPUT_OP_SET_PARAM,Constants.OUTPUT_OP_RESULT_FAIL,Constants.PARAM_SHOULD_HAVE_COMPUTE_ONLY_GROUP);
        return;
      }
    }
 else     if (ioShares == null) {
      System.out.println("String_Node_Str");
      return;
    }
    ElasticityMode mode=null;
    if (elasticityMode != null) {
      try {
        mode=ElasticityMode.valueOf(elasticityMode.toUpperCase());
      }
 catch (      IllegalArgumentException e) {
        CommandsUtils.printCmdFailure(Constants.OUTPUT_OBJECT_CLUSTER,clusterName,Constants.OUTPUT_OP_SET_PARAM,Constants.OUTPUT_OP_RESULT_FAIL,Constants.INVALID_VALUE + "String_Node_Str" + elasticityMode);
        return;
      }
    }
    Boolean enableAuto=null;
    if (mode != null) {
      enableAuto=(mode == ElasticityMode.AUTO) ? true : false;
    }
    if (!cluster.validateSetParamParameters(targetComputeNodeNum,minComputeNodeNum,maxComputeNodeNum)) {
      return;
    }
    Priority ioPriority=null;
    if (ioShares != null) {
      try {
        ioPriority=Priority.valueOf(ioShares.toUpperCase());
      }
 catch (      IllegalArgumentException ex) {
        CommandsUtils.printCmdFailure(Constants.OUTPUT_OBJECT_CLUSTER,clusterName,Constants.OUTPUT_OP_SET_PARAM,Constants.OUTPUT_OP_RESULT_FAIL,Constants.INVALID_VALUE + "String_Node_Str" + "String_Node_Str"+ ioShares);
        return;
      }
    }
    ElasticityRequestBody requestBody=new ElasticityRequestBody();
    requestBody.setEnableAuto(enableAuto);
    if (mode != null) {
      if (mode == ElasticityMode.AUTO) {
        requestBody.setMinComputeNodeNum(minComputeNodeNum);
        requestBody.setMaxComputeNodeNum(maxComputeNodeNum);
      }
 else {
        requestBody.setActiveComputeNodeNum(targetComputeNodeNum);
      }
    }
 else {
      requestBody.setMinComputeNodeNum(minComputeNodeNum);
      requestBody.setMaxComputeNodeNum(maxComputeNodeNum);
      requestBody.setActiveComputeNodeNum(targetComputeNodeNum);
    }
    requestBody.setIoPriority(ioPriority);
    restClient.setParam(cluster,requestBody);
    CommandsUtils.printCmdSuccess(Constants.OUTPUT_OBJECT_CLUSTER,clusterName,Constants.OUTPUT_OP_RESULT_ADJUST);
    if (mode != null) {
      if (mode == ElasticityMode.AUTO) {
        if (targetComputeNodeNum != null) {
          System.out.println("String_Node_Str");
        }
      }
 else {
        if (minComputeNodeNum != null || maxComputeNodeNum != null) {
          System.out.println("String_Node_Str");
        }
      }
    }
  }
 catch (  CliRestException e) {
    if (e.getMessage() != null) {
      CommandsUtils.printCmdFailure(Constants.OUTPUT_OBJECT_CLUSTER,clusterName,Constants.OUTPUT_OP_SET_PARAM,Constants.OUTPUT_OP_RESULT_FAIL,e.getMessage());
    }
  }
}