Program: 162305
Project: 162305
Buggy source:
@Override public void encode(Object requestBody,Type bodyType,RequestTemplate request) throws EncodeException {
  if (requestBody != null) {
    Class<?> requestType=requestBody.getClass();
    Collection<String> contentTypes=request.headers().get("String_Node_Str");
    MediaType requestContentType=null;
    if (contentTypes != null && !contentTypes.isEmpty()) {
      String type=contentTypes.iterator().next();
      requestContentType=MediaType.valueOf(type);
    }
    for (    HttpMessageConverter<?> messageConverter : this.messageConverters.getObject().getConverters()) {
      if (messageConverter.canWrite(requestType,requestContentType)) {
        if (log.isDebugEnabled()) {
          if (requestContentType != null) {
            log.debug("String_Node_Str" + requestBody + "String_Node_Str"+ requestContentType+ "String_Node_Str"+ messageConverter+ "String_Node_Str");
          }
 else {
            log.debug("String_Node_Str" + requestBody + "String_Node_Str"+ messageConverter+ "String_Node_Str");
          }
        }
        FeignOutputMessage outputMessage=new FeignOutputMessage(request);
        try {
          @SuppressWarnings("String_Node_Str") HttpMessageConverter<Object> copy=(HttpMessageConverter<Object>)messageConverter;
          copy.write(requestBody,requestContentType,outputMessage);
        }
 catch (        IOException ex) {
          throw new EncodeException("String_Node_Str",ex);
        }
        request.headers(null);
        request.headers(getHeaders(outputMessage.getHeaders()));
        request.body(outputMessage.getOutputStream().toByteArray(),Charset.forName("String_Node_Str"));
        return;
      }
    }
    String message="String_Node_Str" + "String_Node_Str" + requestType.getName() + "String_Node_Str";
    if (requestContentType != null) {
      message+="String_Node_Str" + requestContentType + "String_Node_Str";
    }
    throw new EncodeException(message);
  }
}

Fixed version (ground truth):
@Override public void encode(Object requestBody,Type bodyType,RequestTemplate request) throws EncodeException {
  if (requestBody != null) {
    Class<?> requestType=requestBody.getClass();
    Collection<String> contentTypes=request.headers().get("String_Node_Str");
    MediaType requestContentType=null;
    if (contentTypes != null && !contentTypes.isEmpty()) {
      String type=contentTypes.iterator().next();
      requestContentType=MediaType.valueOf(type);
    }
    for (    HttpMessageConverter<?> messageConverter : this.messageConverters.getObject().getConverters()) {
      if (messageConverter.canWrite(requestType,requestContentType)) {
        if (log.isDebugEnabled()) {
          if (requestContentType != null) {
            log.debug("String_Node_Str" + requestBody + "String_Node_Str"+ requestContentType+ "String_Node_Str"+ messageConverter+ "String_Node_Str");
          }
 else {
            log.debug("String_Node_Str" + requestBody + "String_Node_Str"+ messageConverter+ "String_Node_Str");
          }
        }
        FeignOutputMessage outputMessage=new FeignOutputMessage(request);
        try {
          @SuppressWarnings("String_Node_Str") HttpMessageConverter<Object> copy=(HttpMessageConverter<Object>)messageConverter;
          copy.write(requestBody,requestContentType,outputMessage);
        }
 catch (        IOException ex) {
          throw new EncodeException("String_Node_Str",ex);
        }
        request.headers(null);
        request.headers(getHeaders(outputMessage.getHeaders()));
        if (messageConverter instanceof ByteArrayHttpMessageConverter) {
          request.body(outputMessage.getOutputStream().toByteArray(),null);
        }
 else {
          request.body(outputMessage.getOutputStream().toByteArray(),Charset.forName("String_Node_Str"));
        }
        return;
      }
    }
    String message="String_Node_Str" + "String_Node_Str" + requestType.getName() + "String_Node_Str";
    if (requestContentType != null) {
      message+="String_Node_Str" + requestContentType + "String_Node_Str";
    }
    throw new EncodeException(message);
  }
}