Program: 34708
Project: 34708
Buggy source:
/** 
 * {@inheritDoc} 
 */
@Override public void validate(ValidationHelper helper,Context context,String key,SecurityScheme t){
  String reference=t.getRef();
  if (reference != null && !reference.isEmpty()) {
    ValidatorUtils.referenceValidatorHelper(reference,t,helper,context,key);
    return;
  }
  Optional<ValidationEvent> op_type=ValidatorUtils.validateRequiredField(t.getType(),context,"String_Node_Str");
  if (op_type.isPresent()) {
    op_type.ifPresent(helper::addValidationEvent);
  }
 else {
    String type=t.getType().toString();
    if ("String_Node_Str".equals(type)) {
      ValidatorUtils.validateRequiredField(t.getName(),context,"String_Node_Str").ifPresent(helper::addValidationEvent);
      Optional<ValidationEvent> op_in=ValidatorUtils.validateRequiredField(t.getIn(),context,"String_Node_Str");
      if (op_in.isPresent()) {
        op_in.ifPresent(helper::addValidationEvent);
      }
 else {
        Set<String> inValues=new HashSet<String>(Arrays.asList("String_Node_Str","String_Node_Str","String_Node_Str"));
        if (!(inValues.contains(t.getIn().toString()))) {
          final String message=Tr.formatMessage(tc,"String_Node_Str",key,t.getIn().toString());
          helper.addValidationEvent(new ValidationEvent(ValidationEvent.Severity.ERROR,context.getLocation(),message));
        }
      }
    }
 else     if ("String_Node_Str".equals(type)) {
      ValidatorUtils.validateRequiredField(t.getScheme(),context,"String_Node_Str").ifPresent(helper::addValidationEvent);
    }
 else     if ("String_Node_Str".equals(type)) {
      ValidatorUtils.validateRequiredField(t.getFlows(),context,"String_Node_Str").ifPresent(helper::addValidationEvent);
    }
 else     if ("String_Node_Str".equals(type)) {
      Optional<ValidationEvent> op_url=ValidatorUtils.validateRequiredField(t.getOpenIdConnectUrl(),context,"String_Node_Str");
      if (op_url.isPresent()) {
        op_url.ifPresent(helper::addValidationEvent);
      }
 else {
        if (!(ValidatorUtils.isValidURL(t.getOpenIdConnectUrl()))) {
          final String message=Tr.formatMessage(tc,"String_Node_Str",t.getOpenIdConnectUrl());
          helper.addValidationEvent(new ValidationEvent(ValidationEvent.Severity.ERROR,context.getLocation(),message));
        }
      }
    }
    if (t.getBearerFormat() != null && !t.getBearerFormat().isEmpty() && !"String_Node_Str".equals(type)) {
      final String message=Tr.formatMessage(tc,"String_Node_Str","String_Node_Str",t.getBearerFormat(),"String_Node_Str",type);
      helper.addValidationEvent(new ValidationEvent(ValidationEvent.Severity.WARNING,context.getLocation(),message));
    }
    if (t.getScheme() != null && !t.getScheme().isEmpty() && !"String_Node_Str".equals(type)) {
      final String message=Tr.formatMessage(tc,"String_Node_Str","String_Node_Str",t.getScheme(),"String_Node_Str",type);
      helper.addValidationEvent(new ValidationEvent(ValidationEvent.Severity.WARNING,context.getLocation(),message));
    }
    if (t.getIn() != null && !"String_Node_Str".equals(type)) {
      final String message=Tr.formatMessage(tc,"String_Node_Str","String_Node_Str",t.getIn(),"String_Node_Str",type);
      helper.addValidationEvent(new ValidationEvent(ValidationEvent.Severity.WARNING,context.getLocation(),message));
    }
    if (t.getName() != null && !t.getName().isEmpty() && !"String_Node_Str".equals(type)) {
      final String message=Tr.formatMessage(tc,"String_Node_Str","String_Node_Str",t.getName(),"String_Node_Str",type);
      helper.addValidationEvent(new ValidationEvent(ValidationEvent.Severity.WARNING,context.getLocation(),message));
    }
    if (t.getOpenIdConnectUrl() != null && !t.getOpenIdConnectUrl().isEmpty() && !"String_Node_Str".equals(type)) {
      final String message=Tr.formatMessage(tc,"String_Node_Str","String_Node_Str",t.getOpenIdConnectUrl(),"String_Node_Str",type);
      helper.addValidationEvent(new ValidationEvent(ValidationEvent.Severity.WARNING,context.getLocation(),message));
    }
    if (!"String_Node_Str".equals(type) && ValidatorUtils.flowsIsSet(t.getFlows())) {
      final String message=Tr.formatMessage(tc,"String_Node_Str","String_Node_Str","String_Node_Str",type);
      helper.addValidationEvent(new ValidationEvent(ValidationEvent.Severity.WARNING,context.getLocation(),message));
    }
  }
}

Fixed version (ground truth):
/** 
 * {@inheritDoc} 
 */
@Override public void validate(ValidationHelper helper,Context context,String key,SecurityScheme t){
  String reference=t.getRef();
  if (reference != null && !reference.isEmpty()) {
    ValidatorUtils.referenceValidatorHelper(reference,t,helper,context,key);
    return;
  }
  Optional<ValidationEvent> op_type=ValidatorUtils.validateRequiredField(t.getType(),context,"String_Node_Str");
  if (op_type.isPresent()) {
    op_type.ifPresent(helper::addValidationEvent);
  }
 else {
    String type=t.getType().toString();
    if ("String_Node_Str".equals(type)) {
      ValidatorUtils.validateRequiredField(t.getName(),context,"String_Node_Str").ifPresent(helper::addValidationEvent);
      Optional<ValidationEvent> op_in=ValidatorUtils.validateRequiredField(t.getIn(),context,"String_Node_Str");
      if (op_in.isPresent()) {
        op_in.ifPresent(helper::addValidationEvent);
      }
 else {
        Set<String> inValues=new HashSet<String>(Arrays.asList("String_Node_Str","String_Node_Str","String_Node_Str"));
        if (!(inValues.contains(t.getIn().toString()))) {
          final String message=Tr.formatMessage(tc,"String_Node_Str",key,t.getIn().toString());
          helper.addValidationEvent(new ValidationEvent(ValidationEvent.Severity.ERROR,context.getLocation(),message));
        }
      }
    }
 else     if ("String_Node_Str".equals(type)) {
      ValidatorUtils.validateRequiredField(t.getScheme(),context,"String_Node_Str").ifPresent(helper::addValidationEvent);
    }
 else     if ("String_Node_Str".equals(type)) {
      ValidatorUtils.validateRequiredField(t.getFlows(),context,"String_Node_Str").ifPresent(helper::addValidationEvent);
    }
 else     if ("String_Node_Str".equals(type)) {
      Optional<ValidationEvent> op_url=ValidatorUtils.validateRequiredField(t.getOpenIdConnectUrl(),context,"String_Node_Str");
      if (op_url.isPresent()) {
        op_url.ifPresent(helper::addValidationEvent);
      }
 else {
        if (!(ValidatorUtils.isValidURI(t.getOpenIdConnectUrl()))) {
          final String message=Tr.formatMessage(tc,"String_Node_Str",t.getOpenIdConnectUrl());
          helper.addValidationEvent(new ValidationEvent(ValidationEvent.Severity.ERROR,context.getLocation(),message));
        }
      }
    }
    if (t.getBearerFormat() != null && !t.getBearerFormat().isEmpty() && !"String_Node_Str".equals(type)) {
      final String message=Tr.formatMessage(tc,"String_Node_Str","String_Node_Str",t.getBearerFormat(),"String_Node_Str",type);
      helper.addValidationEvent(new ValidationEvent(ValidationEvent.Severity.WARNING,context.getLocation(),message));
    }
    if (t.getScheme() != null && !t.getScheme().isEmpty() && !"String_Node_Str".equals(type)) {
      final String message=Tr.formatMessage(tc,"String_Node_Str","String_Node_Str",t.getScheme(),"String_Node_Str",type);
      helper.addValidationEvent(new ValidationEvent(ValidationEvent.Severity.WARNING,context.getLocation(),message));
    }
    if (t.getIn() != null && !"String_Node_Str".equals(type)) {
      final String message=Tr.formatMessage(tc,"String_Node_Str","String_Node_Str",t.getIn(),"String_Node_Str",type);
      helper.addValidationEvent(new ValidationEvent(ValidationEvent.Severity.WARNING,context.getLocation(),message));
    }
    if (t.getName() != null && !t.getName().isEmpty() && !"String_Node_Str".equals(type)) {
      final String message=Tr.formatMessage(tc,"String_Node_Str","String_Node_Str",t.getName(),"String_Node_Str",type);
      helper.addValidationEvent(new ValidationEvent(ValidationEvent.Severity.WARNING,context.getLocation(),message));
    }
    if (t.getOpenIdConnectUrl() != null && !t.getOpenIdConnectUrl().isEmpty() && !"String_Node_Str".equals(type)) {
      final String message=Tr.formatMessage(tc,"String_Node_Str","String_Node_Str",t.getOpenIdConnectUrl(),"String_Node_Str",type);
      helper.addValidationEvent(new ValidationEvent(ValidationEvent.Severity.WARNING,context.getLocation(),message));
    }
    if (!"String_Node_Str".equals(type) && ValidatorUtils.flowsIsSet(t.getFlows())) {
      final String message=Tr.formatMessage(tc,"String_Node_Str","String_Node_Str","String_Node_Str",type);
      helper.addValidationEvent(new ValidationEvent(ValidationEvent.Severity.WARNING,context.getLocation(),message));
    }
  }
}