Skip to content

Commit

Permalink
Merge pull request #711 from zalando/bugfix/javadoc
Browse files Browse the repository at this point in the history
Fixed old code example in javadoc
  • Loading branch information
Willi Schönborn authored Feb 12, 2020
2 parents e7ad1c4 + 1d82d5f commit cb81a92
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,20 @@
*
* private final JsonHttpLogFormatter delegate;
*
* public CustomsFormatter(final ObjectMapper mapper) {
* public CustomsFormatter(ObjectMapper mapper) {
* this.delegate = new JsonHttpLogFormatter(mapper);
* }
*
* public String format(final Precorrelation<HttpRequest> precorrelation) throws IOException {
* Map<String, Object> request = delegate.prepare(precorrelation);
* public String format(Precorrelation precorrelation, HttpRequest request) throws IOException {
* Map<String, Object> content = delegate.prepare(precorrelation, request);
* // modify request here
* return delegate.format(request);
* return delegate.format(content);
* }
*
* public String format(final Correlation<HttpRequest, HttpResponse> correlation) throws IOException {
* Map<String, Object> response = delegate.prepare(correlation);
* public String format(Correlation correlation, HttpResponse response) throws IOException {
* Map<String, Object> content = delegate.prepare(correlation, response);
* // modify response here
* return delegate.format(response);
* return delegate.format(content);
* }
*
* }
Expand Down

0 comments on commit cb81a92

Please sign in to comment.