From: Julien HENRY Date: Fri, 13 Mar 2020 10:58:17 +0000 (+0100) Subject: SONAR-13198 Deprecate JsonWriter X-Git-Tag: 8.3.0.34182~133 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dcd34589efe9522c19a7a485268e87dd24949278;p=sonarqube.git SONAR-13198 Deprecate JsonWriter --- diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/utils/text/JsonWriter.java b/sonar-plugin-api/src/main/java/org/sonar/api/utils/text/JsonWriter.java index 9cdf96980f7..00f15d810b3 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/utils/text/JsonWriter.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/utils/text/JsonWriter.java @@ -60,9 +60,11 @@ import org.sonar.api.utils.DateUtils; * method {@link #close()} closes the underlying writer. *

* - * * @since 4.2 + * @deprecated since 8.3 this utility class will be moved out of the API. Use your own JSON dependency + * if you need to write JSON from your plugin */ +@Deprecated public class JsonWriter implements AutoCloseable { private final com.google.gson.stream.JsonWriter stream;