Program: 177190
Project: 177190
Buggy source:
public ValidationResult validateEndpointInterface(EndpointInterface ei){
  ValidationResult result=new ValidationResult();
  Declaration delegate=ei.getDelegate();
  WebService ws=delegate.getAnnotation(WebService.class);
  if (ws == null) {
    result.addError(delegate.getPosition(),"String_Node_Str");
  }
 else {
    if (((ei.getPackage() == null) || ("String_Node_Str".equals(ei.getPackage().getQualifiedName()))) && (ei.getTargetNamespace() == null)) {
      result.addError(delegate.getPosition(),"String_Node_Str");
    }
    if ((ws.endpointInterface() != null) && (!"String_Node_Str".equals(ws.endpointInterface()))) {
      result.addError(delegate.getPosition(),"String_Node_Str");
    }
  }
  if (delegate instanceof AnnotationTypeDeclaration) {
    result.addError(delegate.getPosition(),"String_Node_Str");
  }
  if (delegate instanceof EnumDeclaration) {
    result.addError(delegate.getPosition(),"String_Node_Str");
  }
  TreeSet<WebMethod> uniquelyNamedWebMethods=new TreeSet<WebMethod>();
  for (  WebMethod webMethod : ei.getWebMethods()) {
    if (!uniquelyNamedWebMethods.add(webMethod)) {
      result.addError(webMethod.getPosition(),"String_Node_Str");
    }
    result.aggregate(validateWebMethod(webMethod));
  }
  for (  EndpointImplementation implementation : ei.getEndpointImplementations()) {
    result.aggregate(validateEndpointImplementation(implementation));
  }
  if (ei.getSoapUse() == SOAPBinding.Use.ENCODED) {
    result.addError(ei.getPosition(),"String_Node_Str");
  }
  return result;
}

Fixed version (ground truth):
public ValidationResult validateEndpointInterface(EndpointInterface ei){
  ValidationResult result=new ValidationResult();
  if ((ei.getEndpointImplementations() == null || (ei.getEndpointImplementations().isEmpty()))) {
    result.addWarning(ei.getPosition(),"String_Node_Str");
  }
  Declaration delegate=ei.getDelegate();
  WebService ws=delegate.getAnnotation(WebService.class);
  if (ws == null) {
    result.addError(delegate.getPosition(),"String_Node_Str");
  }
 else {
    if (((ei.getPackage() == null) || ("String_Node_Str".equals(ei.getPackage().getQualifiedName()))) && (ei.getTargetNamespace() == null)) {
      result.addError(delegate.getPosition(),"String_Node_Str");
    }
    if ((ws.endpointInterface() != null) && (!"String_Node_Str".equals(ws.endpointInterface()))) {
      result.addError(delegate.getPosition(),"String_Node_Str");
    }
  }
  if (delegate instanceof AnnotationTypeDeclaration) {
    result.addError(delegate.getPosition(),"String_Node_Str");
  }
  if (delegate instanceof EnumDeclaration) {
    result.addError(delegate.getPosition(),"String_Node_Str");
  }
  TreeSet<WebMethod> uniquelyNamedWebMethods=new TreeSet<WebMethod>();
  for (  WebMethod webMethod : ei.getWebMethods()) {
    if (!uniquelyNamedWebMethods.add(webMethod)) {
      result.addError(webMethod.getPosition(),"String_Node_Str");
    }
    result.aggregate(validateWebMethod(webMethod));
  }
  for (  EndpointImplementation implementation : ei.getEndpointImplementations()) {
    result.aggregate(validateEndpointImplementation(implementation));
  }
  if (ei.getSoapUse() == SOAPBinding.Use.ENCODED) {
    result.addError(ei.getPosition(),"String_Node_Str");
  }
  return result;
}