Program: 20363
Project: 20363
Buggy source:
/** 
 * This method forms a   {@link java.util.Map} of parameters for theactivity starting.
 * @param appPackage      The package containing the activity. [Required]
 * @param appActivity     The activity to start. [Required]
 * @param appWaitPackage  Automation will begin after this package starts. [Optional]
 * @param appWaitActivity Automation will begin after this activity starts. [Optional]
 * @param intentAction  Intent action which will be used to start activity [Optional]
 * @param intentCategory  Intent category which will be used to start activity [Optional]
 * @param intentFlags  Flags that will be used to start activity [Optional]
 * @param optionalIntentArguments Additional intent arguments that will be used tostart activity [Optional]
 * @return a key-value pair. The key is the command name. The value is a{@link java.util.Map} command arguments.
 * @throws IllegalArgumentException
 */
public static Map.Entry<String,Map<String,?>> startActivityCommand(String appPackage,String appActivity,String appWaitPackage,String appWaitActivity,String intentAction,String intentCategory,String intentFlags,String optionalIntentArguments,boolean stopApp) throws IllegalArgumentException {
  checkArgument((!StringUtils.isBlank(appPackage) && !StringUtils.isBlank(appActivity)),String.format("String_Node_Str","String_Node_Str","String_Node_Str"));
  appWaitPackage=!StringUtils.isBlank(appWaitPackage) ? appWaitPackage : "String_Node_Str";
  appWaitActivity=!StringUtils.isBlank(appWaitActivity) ? appWaitActivity : "String_Node_Str";
  intentAction=!StringUtils.isBlank(intentAction) ? intentAction : "String_Node_Str";
  intentCategory=!StringUtils.isBlank(intentCategory) ? intentCategory : "String_Node_Str";
  intentFlags=!StringUtils.isBlank(intentFlags) ? intentFlags : "String_Node_Str";
  optionalIntentArguments=!StringUtils.isBlank(optionalIntentArguments) ? optionalIntentArguments : "String_Node_Str";
  ImmutableMap<String,?> parameters=ImmutableMap.<String,Object>builder().put("String_Node_Str",appPackage).put("String_Node_Str",appActivity).put("String_Node_Str",appWaitPackage).put("String_Node_Str",appWaitActivity).put("String_Node_Str",!stopApp).put("String_Node_Str",intentAction).put("String_Node_Str",intentCategory).put("String_Node_Str",intentFlags).put("String_Node_Str",optionalIntentArguments).build();
  return new AbstractMap.SimpleEntry<String,Map<String,?>>(START_ACTIVITY,parameters);
}

Fixed version (ground truth):
/** 
 * This method forms a   {@link java.util.Map} of parameters for theactivity starting.
 * @param appPackage      The package containing the activity. [Required]
 * @param appActivity     The activity to start. [Required]
 * @param appWaitPackage  Automation will begin after this package starts. [Optional]
 * @param appWaitActivity Automation will begin after this activity starts. [Optional]
 * @param intentAction  Intent action which will be used to start activity [Optional]
 * @param intentCategory  Intent category which will be used to start activity [Optional]
 * @param intentFlags  Flags that will be used to start activity [Optional]
 * @param optionalIntentArguments Additional intent arguments that will be used tostart activity [Optional]
 * @return a key-value pair. The key is the command name. The value is a{@link java.util.Map} command arguments.
 * @throws IllegalArgumentException when any required argument is empty
 */
public static Map.Entry<String,Map<String,?>> startActivityCommand(String appPackage,String appActivity,String appWaitPackage,String appWaitActivity,String intentAction,String intentCategory,String intentFlags,String optionalIntentArguments,boolean stopApp) throws IllegalArgumentException {
  checkArgument((!StringUtils.isBlank(appPackage) && !StringUtils.isBlank(appActivity)),String.format("String_Node_Str","String_Node_Str","String_Node_Str"));
  appWaitPackage=!StringUtils.isBlank(appWaitPackage) ? appWaitPackage : "String_Node_Str";
  appWaitActivity=!StringUtils.isBlank(appWaitActivity) ? appWaitActivity : "String_Node_Str";
  intentAction=!StringUtils.isBlank(intentAction) ? intentAction : "String_Node_Str";
  intentCategory=!StringUtils.isBlank(intentCategory) ? intentCategory : "String_Node_Str";
  intentFlags=!StringUtils.isBlank(intentFlags) ? intentFlags : "String_Node_Str";
  optionalIntentArguments=!StringUtils.isBlank(optionalIntentArguments) ? optionalIntentArguments : "String_Node_Str";
  ImmutableMap<String,?> parameters=ImmutableMap.<String,Object>builder().put("String_Node_Str",appPackage).put("String_Node_Str",appActivity).put("String_Node_Str",appWaitPackage).put("String_Node_Str",appWaitActivity).put("String_Node_Str",!stopApp).put("String_Node_Str",intentAction).put("String_Node_Str",intentCategory).put("String_Node_Str",intentFlags).put("String_Node_Str",optionalIntentArguments).build();
  return new AbstractMap.SimpleEntry<String,Map<String,?>>(START_ACTIVITY,parameters);
}