From 66a0165280911e040e7e82ad3e510688d1227d83 Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Tue, 25 Apr 2017 21:17:31 +0200 Subject: [PATCH] fix wrong comments of the AdvancedHttpClient api --- .../java/sonia/scm/net/ahc/AdvancedHttpRequestWithBody.java | 2 +- .../src/main/java/sonia/scm/net/ahc/AdvancedHttpResponse.java | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scm-core/src/main/java/sonia/scm/net/ahc/AdvancedHttpRequestWithBody.java b/scm-core/src/main/java/sonia/scm/net/ahc/AdvancedHttpRequestWithBody.java index dd5ec6f425..fdc779a9f9 100644 --- a/scm-core/src/main/java/sonia/scm/net/ahc/AdvancedHttpRequestWithBody.java +++ b/scm-core/src/main/java/sonia/scm/net/ahc/AdvancedHttpRequestWithBody.java @@ -123,7 +123,7 @@ public class AdvancedHttpRequestWithBody } /** - * Transforms the given object to a xml string and set this string as request + * Transforms the given object to a json string and set this string as request * content. * * @param object object to transform diff --git a/scm-core/src/main/java/sonia/scm/net/ahc/AdvancedHttpResponse.java b/scm-core/src/main/java/sonia/scm/net/ahc/AdvancedHttpResponse.java index 1cb087710b..66893cbd68 100644 --- a/scm-core/src/main/java/sonia/scm/net/ahc/AdvancedHttpResponse.java +++ b/scm-core/src/main/java/sonia/scm/net/ahc/AdvancedHttpResponse.java @@ -253,7 +253,9 @@ public abstract class AdvancedHttpResponse } /** - * Transforms the response content from xml to the given type. + * Transforms the response content to the given type. The method will use + * the {@link ContentTransformer} which is responsible for the the given + * content type. * * @param object type * @param type object type