Program: 17947
Project: 17947
Buggy source:
@Override public List<String> getSupportedContentTypes(Class<? extends ODataProcessor> processorFeature) throws ODataException {
  List<String> result=new ArrayList<String>();
  if (processor instanceof CustomContentType) {
    result.addAll(((CustomContentType)processor).getCustomContentTypes(processorFeature));
  }
  if (processorFeature == BatchProcessor.class) {
    result.add(HttpContentType.MULTIPART_MIXED);
  }
 else   if (processorFeature == EntityProcessor.class) {
    result.add(HttpContentType.APPLICATION_ATOM_XML_ENTRY_UTF8);
    result.add(HttpContentType.APPLICATION_ATOM_XML_UTF8);
    result.add(HttpContentType.APPLICATION_JSON_UTF8);
    result.add(HttpContentType.APPLICATION_XML_UTF8);
  }
 else   if (processorFeature == FunctionImportProcessor.class || processorFeature == EntityLinkProcessor.class || processorFeature == EntityLinksProcessor.class || processorFeature == EntitySimplePropertyProcessor.class || processorFeature == EntityComplexPropertyProcessor.class) {
    result.add(HttpContentType.APPLICATION_XML_UTF8);
    result.add(HttpContentType.APPLICATION_JSON_UTF8);
  }
 else   if (processorFeature == EntityMediaProcessor.class || processorFeature == EntitySimplePropertyValueProcessor.class || processorFeature == FunctionImportValueProcessor.class) {
    result.add(HttpContentType.WILDCARD);
  }
 else   if (processorFeature == EntitySetProcessor.class) {
    result.add(HttpContentType.APPLICATION_ATOM_XML_FEED_UTF8);
    result.add(HttpContentType.APPLICATION_ATOM_XML_UTF8);
    result.add(HttpContentType.APPLICATION_JSON_UTF8);
    result.add(HttpContentType.APPLICATION_XML_UTF8);
  }
 else   if (processorFeature == MetadataProcessor.class) {
    result.add(HttpContentType.APPLICATION_XML_UTF8);
  }
 else   if (processorFeature == ServiceDocumentProcessor.class) {
    result.add(HttpContentType.APPLICATION_ATOM_SVC_UTF8);
    result.add(HttpContentType.APPLICATION_ATOM_XML_UTF8);
    result.add(HttpContentType.APPLICATION_JSON_UTF8);
    result.add(HttpContentType.APPLICATION_XML_UTF8);
  }
 else {
    throw new ODataNotImplementedException();
  }
  return result;
}

Fixed version (ground truth):
@Override public List<String> getSupportedContentTypes(Class<? extends ODataProcessor> processorFeature) throws ODataException {
  List<String> result=new ArrayList<String>();
  if (processor instanceof CustomContentType) {
    result.addAll(((CustomContentType)processor).getCustomContentTypes(processorFeature));
  }
  if (processorFeature == BatchProcessor.class) {
    result.add(HttpContentType.MULTIPART_MIXED);
  }
 else   if (processorFeature == EntityProcessor.class) {
    result.add(HttpContentType.APPLICATION_ATOM_XML_ENTRY_UTF8);
    result.add(HttpContentType.APPLICATION_ATOM_XML_UTF8);
    result.add(HttpContentType.APPLICATION_JSON_UTF8);
    result.add(HttpContentType.APPLICATION_XML_UTF8);
  }
 else   if (processorFeature == FunctionImportProcessor.class || processorFeature == EntityLinkProcessor.class || processorFeature == EntityLinksProcessor.class || processorFeature == EntitySimplePropertyProcessor.class || processorFeature == EntityComplexPropertyProcessor.class) {
    result.add(HttpContentType.APPLICATION_XML_UTF8);
    result.add(HttpContentType.APPLICATION_JSON_UTF8);
  }
 else   if (processorFeature == EntityMediaProcessor.class || processorFeature == EntitySimplePropertyValueProcessor.class || processorFeature == FunctionImportValueProcessor.class) {
    result.add(HttpContentType.WILDCARD);
  }
 else   if (processorFeature == EntitySetProcessor.class) {
    result.add(HttpContentType.APPLICATION_ATOM_XML_FEED_UTF8);
    result.add(HttpContentType.APPLICATION_ATOM_XML_UTF8);
    result.add(HttpContentType.APPLICATION_JSON_UTF8);
    result.add(HttpContentType.APPLICATION_XML_UTF8);
  }
 else   if (processorFeature == MetadataProcessor.class) {
    result.add(HttpContentType.APPLICATION_XML_UTF8);
  }
 else   if (processorFeature == ServiceDocumentProcessor.class) {
    result.add(HttpContentType.APPLICATION_ATOM_SVC_UTF8);
    result.add(HttpContentType.APPLICATION_JSON_UTF8);
    result.add(HttpContentType.APPLICATION_XML_UTF8);
  }
 else {
    throw new ODataNotImplementedException();
  }
  return result;
}