From dcd34589efe9522c19a7a485268e87dd24949278 Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Fri, 13 Mar 2020 11:58:17 +0100 Subject: [PATCH] SONAR-13198 Deprecate JsonWriter --- .../src/main/java/org/sonar/api/utils/text/JsonWriter.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.39.5