Program: 89155
Project: 89155
Buggy source:
/** 
 * @see org.alfresco.repo.module.AbstractModuleComponent#executeInternal()
 */
@Override protected void executePatch(){
  Set<NodeRef> filePlans=getFilePlans();
  if (logger.isDebugEnabled()) {
    logger.debug("String_Node_Str" + filePlans.size() + "String_Node_Str");
  }
  for (  NodeRef filePlan : filePlans) {
    if (logger.isDebugEnabled()) {
      logger.debug("String_Node_Str" + filePlan.toString());
    }
    addCapability(filePlan,"String_Node_Str",FilePlanRoleService.ROLE_ADMIN,FilePlanRoleService.ROLE_POWER_USER,FilePlanRoleService.ROLE_RECORDS_MANAGER,FilePlanRoleService.ROLE_SECURITY_OFFICER);
    addCapability(filePlan,"String_Node_Str",FilePlanRoleService.ROLE_ADMIN);
    addCapability(filePlan,"String_Node_Str",FilePlanRoleService.ROLE_ADMIN,FilePlanRoleService.ROLE_POWER_USER,FilePlanRoleService.ROLE_RECORDS_MANAGER,FilePlanRoleService.ROLE_SECURITY_OFFICER);
    addCapability(filePlan,"String_Node_Str",FilePlanRoleService.ROLE_ADMIN,FilePlanRoleService.ROLE_RECORDS_MANAGER);
    addCapability(filePlan,"String_Node_Str",FilePlanRoleService.ROLE_ADMIN,FilePlanRoleService.ROLE_POWER_USER,FilePlanRoleService.ROLE_RECORDS_MANAGER,FilePlanRoleService.ROLE_SECURITY_OFFICER);
    addCapability(filePlan,"String_Node_Str",FilePlanRoleService.ROLE_ADMIN,FilePlanRoleService.ROLE_POWER_USER,FilePlanRoleService.ROLE_RECORDS_MANAGER,FilePlanRoleService.ROLE_SECURITY_OFFICER);
    addCapability(filePlan,"String_Node_Str",FilePlanRoleService.ROLE_ADMIN,FilePlanRoleService.ROLE_POWER_USER,FilePlanRoleService.ROLE_RECORDS_MANAGER,FilePlanRoleService.ROLE_SECURITY_OFFICER);
  }
}

Fixed version (ground truth):
/** 
 * @see org.alfresco.repo.module.AbstractModuleComponent#executeInternal()
 */
@Override protected void executePatch(){
  Set<NodeRef> filePlans=getFilePlans();
  if (LOGGER.isDebugEnabled()) {
    LOGGER.debug("String_Node_Str" + filePlans.size() + "String_Node_Str");
  }
  for (  NodeRef filePlan : filePlans) {
    if (LOGGER.isDebugEnabled()) {
      LOGGER.debug("String_Node_Str" + filePlan.toString());
    }
    addCapability(filePlan,"String_Node_Str",FilePlanRoleService.ROLE_ADMIN,FilePlanRoleService.ROLE_POWER_USER,FilePlanRoleService.ROLE_RECORDS_MANAGER,FilePlanRoleService.ROLE_SECURITY_OFFICER);
    addCapability(filePlan,"String_Node_Str",FilePlanRoleService.ROLE_ADMIN);
    addCapability(filePlan,"String_Node_Str",FilePlanRoleService.ROLE_ADMIN,FilePlanRoleService.ROLE_POWER_USER,FilePlanRoleService.ROLE_RECORDS_MANAGER,FilePlanRoleService.ROLE_SECURITY_OFFICER);
    addCapability(filePlan,"String_Node_Str",FilePlanRoleService.ROLE_ADMIN,FilePlanRoleService.ROLE_RECORDS_MANAGER);
    addCapability(filePlan,"String_Node_Str",FilePlanRoleService.ROLE_ADMIN,FilePlanRoleService.ROLE_POWER_USER,FilePlanRoleService.ROLE_RECORDS_MANAGER,FilePlanRoleService.ROLE_SECURITY_OFFICER);
    addCapability(filePlan,"String_Node_Str",FilePlanRoleService.ROLE_ADMIN,FilePlanRoleService.ROLE_POWER_USER,FilePlanRoleService.ROLE_RECORDS_MANAGER,FilePlanRoleService.ROLE_SECURITY_OFFICER);
    addCapability(filePlan,"String_Node_Str",FilePlanRoleService.ROLE_ADMIN,FilePlanRoleService.ROLE_POWER_USER,FilePlanRoleService.ROLE_RECORDS_MANAGER,FilePlanRoleService.ROLE_SECURITY_OFFICER);
  }
}